Example #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        if (_isDead)
        {
            return;
        }

        if (_isMoving && !_isDead)
        {
            _isMoving = _pathWalker.Move();
        }

        else if (!_isMoving && !_isWaiting && !_isDead)
        {
            StartCoroutine(WaitAbit());
        }
    }