Exemplo n.º 1
0
    void Awake()
    {
        int   currentLevel      = GameManager.GetManager().MissionCount;
        Range waitDurationRange = Difficulty.CowWaitTime(currentLevel);

        waitDuration   = Random.Range(waitDurationRange.Min, waitDurationRange.Max);
        actionDuration = Random.Range(1f, 2f);
        cowAction      = GetRandomCowAction();
        isGrounded     = true;
        maxSpeed       = Difficulty.CowSpeed(currentLevel);
    }