Esempio n. 1
0
 void Start()
 {
     this.transform.parent.GetComponent <MeshCollider>().convex = true;
     bakeObject = GameObject.Find("GameRoot");
     baker      = bakeObject.GetComponent <NavMeshSurfaceBaker>();
     baker.Init();
 }
Esempio n. 2
0
 public void countDownReady()
 {
     rootObj = mapObj.GetComponent <NavMeshSurfaceBaker>();
     if (isOffline)
     {
         for (int i = 0; i < AppUtil.EnemyNum; i++)
         {
             statusList[i] = rootObj.GetEnemyList[i].GetComponent <setDirectionNext>();
         }
     }
     countDownText.text = countDownNum.ToString();
     StartCoroutine(countDown());
 }