public void Action() { if (Check) { actionObject.Trigger("c+"); } else { actionObject.Trigger("c-"); } }
public void TriggerObject(bool condition, ActionObject action) { Debug.Log(action.name + ", " + condition); if (condition) { action.Trigger("s+"); } else { action.Trigger("s-"); } }