public void OnClicked() { if (IgnoreClickCheck()) { return; } // "move" in place if (CreatureMoveControl.CurrentCreature == this) { CreatureMoveControl.Cancel(); ActionBox.instance.Show(this); return; } // Clicking creature that has already moved if (!MoveAvailable && ActionAvailable) { ActionBox.instance.Show(this); return; } // Clicking creature that's done it's thing for the turn if (!MoveAvailable && !ActionAvailable) { Toaster.Instance.DoToast("You can only use a creature once per turn"); return; } // Clicking a creature when nothing else is going on if (MoveAvailable && Controller.Actions > 0) { CreatureMoveControl.Setup(this); return; } }
public void OnClicked() { CreatureMoveControl.Cancel(); AttackControl.Cancel(); // need to add single tile target effect control }