Пример #1
0
 // Use this for initialization
 void Start()
 {
     gameObject.GetComponent<AITankScript>().playername = "Simple Rider";
     level = GameObject.Find("Level").GetComponent<Level>();
     state = State.SEARCH;
     msize = (int)Mathf.Sqrt(level.getMap().Length);
     Debug.Log (msize);
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     gameObject.GetComponent<AITankScript>().playername = "Kaya";
     level = GameObject.Find("Level").GetComponent<Level>();
     align = (KayaAlign)gameObject.AddComponent(typeof(KayaAlign));
     arrive = (KayaArrive)gameObject.AddComponent(typeof(KayaArrive));
     astar = new KayaStar(level.getMap());
 }