Пример #1
0
    void Update()
    {
        if (state == (int)States.Idle)
        {
            if (unitMovement.isAtDestination)
            {
                if (Random.Range(0, 300) == 0)
                {
                    unitMovement.currentDestination = unitMovement.GetRandomDestination();
                }
            }
        }

        else if (state == (int)States.CollectingStraw)
        {
        }

        else if (state == (int)States.CollectingFood)
        {
        }

        else if (state == (int)States.Alerted)
        {
        }

        else if (state == (int)States.Fighting)
        {
        }
    }