public void Update() { if (Input.GetKeyDown(Key)) { Event.Raise(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; ToriiEvent e = target as ToriiEvent; if (GUILayout.Button("Raise")) { e.Raise(); } }
public void Start() { ToTrigger.Raise(); }
public void Awake() { ToTrigger.Raise(); }