// Use this for initialization void Start() { assist = FindObjectOfType <FieldOrientationAssistant>(); pathfinding = new AStarHex(); fill = new FloodFillHex(); waypoints = new Vector3[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); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Debug.LogError("An instance of Field Orientation Assistant already exists!"); } }