// Use this for initialization void Start() { StartCameraControl = false; RequireNext = false; NextInfo = false; InfoPanelTimer = 0; InfoPanelUpdates = new List <string>(); G.UIM = this; Acting = false; AS = ActingState.None; }
public void DoneActing() { Acting = false; AS = ActingState.None; MoveText.text = "Move"; AttackText.text = "Attack"; FortifyText.text = "Fortify"; EquipText.text = "Equip"; ItemText.text = "Item"; DetectText.text = "Detect"; }
public void DetectClicked() { if (!Acting) { Acting = true; AS = ActingState.Detecting; DetectText.text = "> Detect"; } else if (AS == ActingState.Detecting) { Acting = false; AS = ActingState.None; DetectText.text = "Detect"; } }
public void ItemClicked() { if (!Acting) { Acting = true; AS = ActingState.Iteming; ItemText.text = "> Item"; } else if (AS == ActingState.Iteming) { Acting = false; AS = ActingState.None; ItemText.text = "Item"; } }
public void EquipClicked() { if (!Acting) { Acting = true; AS = ActingState.Equiping; EquipText.text = "> Equip"; } else if (AS == ActingState.Equiping) { Acting = false; AS = ActingState.None; EquipText.text = "Equip"; } }
public void FortifyClicked() { if (!Acting) { Acting = true; AS = ActingState.Fortifying; FortifyText.text = "> Fortity"; } else if (AS == ActingState.Fortifying) { Acting = false; AS = ActingState.None; FortifyText.text = "Fortify"; } }
public void AttackClicked() { if (!Acting && G.GM.Hero1.GetComponent <Placable>().cAP >= 4) { Acting = true; AS = ActingState.Attacking; AttackText.text = "> Attack"; G.GM.ToggleAttack(true); } else if (AS == ActingState.Attacking) { Acting = false; AS = ActingState.None; AttackText.text = "Attack"; } }
public void MoveClicked() { if (!Acting) { Acting = true; AS = ActingState.Moving; MoveText.text = "> Move"; G.GM.ToggleMoving(true); } else if (AS == ActingState.Moving) { G.GM.ToggleMoving(false); Acting = false; AS = ActingState.None; MoveText.text = "Move"; } }