Пример #1
0
 // Use this for initialization
 void Start()
 {
     assist      = FindObjectOfType <FieldOrientationAssistant>();
     pathfinding = new AStarHex();
     fill        = new FloodFillHex();
     waypoints   = new Vector3[0];
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     unit   = GetComponent <UnitController>();
     weapon = GetComponent <FireWeapon>();
     player = GameObject.Find("Player").GetComponent <SelfDestruct>();
     assist = FindObjectOfType <FieldOrientationAssistant>();
     //Debug.Log(player);
 }
Пример #3
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.LogError("An instance of Field Orientation Assistant already exists!");
     }
 }