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();
            }
        }
예제 #3
0
 public void Start()
 {
     ToTrigger.Raise();
 }
예제 #4
0
 public void Awake()
 {
     ToTrigger.Raise();
 }