Exemplo n.º 1
0
 void Start()
 {
     if (gm_CvsRR_ref == null)
     {
         gm_CvsRR_ref = GameObject.Find("GameManager").GetComponent <GM_CopsvsRobbers> ();
     }
 }
Exemplo n.º 2
0
    void OnEnable()
    {
        gameManager_ref = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GM_CopsvsRobbers>();

        aI_ref = gameObject.GetComponent <AI> ();

        Invoke("UpdateTeam", 1.0f);
    }