private void StartEvent(EventInteraction eventInteraction) { if (eventInteraction == null) { return; } eventInteraction.StartEvent(gameObject); }
/* ============================================================================ Start/end functions ============================================================================ */ public void StartEvent(EventInteraction interact) { if(this.step.Length > 0 && !this.executing) { this.interaction = interact; this.StartEvent(); } }
void OnButtonDown() { EventInteraction?.Invoke(this); }