private void OnDeselect() { Debug.Log("Deselect army entitiy"); activated = false; ActionMode = ArmyActionMode.Move; foreach (UnitSprite unitSprite in currentSpriteSlotHolder.GetComponentsInChildren <UnitSprite>()) { unitSprite.StopPosing(); } }
private void ActiveUpdate() { //Check for the Mode Change key. if (Input.GetKeyDown(KeyCode.M)) { ActionMode = ArmyActionMode.Move; } else if (Input.GetKeyDown(KeyCode.N)) { ActionMode = ArmyActionMode.SetSupply; } return; }
private void OnInitializeUI(UICom com) { UIArmy uiArmy = (UIArmy)com; uiArmy.SetText(Name, Controller.PlayerId.ToString(), Food.ToString(), "", Manpower.ToString(), "", "", ""); void ArmyMove() { ActionMode = ArmyActionMode.Move; } void ArmySupply() { ActionMode = ArmyActionMode.SetSupply; } uiArmy.SetButtonListeners(ArmyMove, ArmySupply); }
private void OnDeselect() { activated = false; ActionMode = ArmyActionMode.Move; }