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();
 }