public void Enter() { if (useEnableAction) { activatable.EnableAction(); } else { activatable.DisableAction(); } }
private void EndDialogue() { if (activatable != null) { activatable.EnableAction(); activatable = null; } if (OnEndDialogue != null) { OnEndDialogue(); } HideDialogue(); GUIManager.instance.ShowInteractableGraphic(); }
public virtual void doAction() //overrided for various switches perhaps { activatable.EnableAction(); }