void Interaction() { // Object states foreach (var item in toEnable) { item.SetActive(true); } foreach (var item in toDisable) { item.SetActive(false); } if (triggerMethod) { triggerMethod.SendMessage("TriggerMethod", SendMessageOptions.DontRequireReceiver); } // UI Pushes if (pushObjective != "") { playerSelection.PushObjective(pushObjective); } if (pushSubtitle != "") { playerSelection.PushSubtitle(pushSubtitle); } if (pushMessage != "") { playerSelection.PushMessage(pushMessage); } if (pushPrompt != "") { playerSelection.PushPrompt(pushPrompt); } // Audio if (sound) { playerSelection.PushAudio(sound, soundVolume); } // Ending if (doOnce) { done = true; } }