A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Try these float currentTime = .0f; float timeAfterAddMoney = 5.0f; void Update() { if(Input.getMouseButtonDown(0)) { addMoney();...
Why you want to use Resources folder.. Instead take all the enemies reference inside an public array. And then use some logic according to current...
Try these steps void Start () { _refBoolKeeper = GameObject.Find("BoolKeeper").GetComponent<BoolKeeper>();...
These line has problem Vector3 objPosition = Camera.main.ScreenToWorldPoint (mousePosition); Use Vector3 objPosition =...
@JD_Designer see it's just a name. You can call it anything from xyz or JD_Designer also. But its good practice that the variable name should be...
whats "ray" value? How did you calculated that?
always beware while using global variables. Try not to use them, and in case if you want to use them, try to reset them
Your confuessed.. bool rRacketCollision = GameObject.Find("BoolKeeper").GetComponent<BoolKeeper>().rightRacketCollision; these line will return...
Or you can try these. Take an array of sprites and then select any random sprite from that array public Sprite[] allSprites; public void...
for timer you can use something like these var timeLimit = 60.0f//1 min var currentTime = .0f; void Start() {...
You can use something like these var dir = (playerTransform.position - enemyTransform.position).magnitude; Bullet.velocity = dir * speed *...