void Start() { this.transform.parent.GetComponent <MeshCollider>().convex = true; bakeObject = GameObject.Find("GameRoot"); baker = bakeObject.GetComponent <NavMeshSurfaceBaker>(); baker.Init(); }
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()); }