Esempio n. 1
0
        public Once(String _trigger, Action _action)
        {
            isActioned = false;


            listener = new TriggerListener();
            listener.Regist(_trigger, onTriggered);

            action = _action;
        }
Esempio n. 2
0
        public Counter(int _activateCount, String _trigger, Action _action, bool _isTriggeredReset)
        {
            activateCount = _activateCount;
            trigger       = _trigger;
            isActioned    = false;


            listener = new TriggerListener();
            listener.Regist(_trigger, onTriggered);

            action           = _action;
            isTriggeredReset = _isTriggeredReset;
        }