I want to call a method from another script in my script using Invoke(),but unable to run it.How can i achieve this ?
Following is my code -
void Start () {
int randNum;
randNum = Random.Range(0,2);
Debug.Log("random number == " + randNum);
if(randNum == 0)
Invoke("PositionScript.instance.MAttack",5f);
if(randNum == 1)
Invoke("PositionScript.instance.SAttack",5f);
}