public override void Awake() { player = -1; moveSpeed = MaxMoveSpeed; moved = false; uDirection = (int)UnitRotations.none; uName = "Infantry"; cc = GameObject.FindGameObjectWithTag("MapControl").GetComponent <CannonCombat>(); }
//public GameObject cube; void Start() { //cc = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraControl>(); combat = GameObject.FindGameObjectWithTag("MapControl").GetComponent <CannonCombat>(); //mh = GameObject.FindGameObjectWithTag("MapControl").GetComponent<MapHandler>(); inRangeTargets = new List <Unit>(); currentCluster = new List <Unit>(); biggestCluster = new List <Unit>(); cube = Instantiate(cube, Vector3.zero, Quaternion.identity); }