示例#1
0
    public void Update()
    {
        Delta = Time.deltaTime;

        _runEventsTimer.Update();
        Invoker.Update();

        if (_autoApply)
        {
            Typer.Cursor.Update();
        }
        if (_canInputCommands)
        {
            Typer.Update();
        }

        if (_actions.Count != 0)
        {
            if (_actionDelay > 0)
            {
                _actionDelay -= Time.deltaTime;
                return;
            }
            foreach (Action act in _actions)
            {
                act();
            }
            _actions.Clear();
            _actionDelay = 0.3f;
        }
    }