Beispiel #1
0
    /// <summary>
    /// Ends and delays combat for a moment.
    /// </summary>
    protected void EndCombat(float waitTime)
    {
        //Deactivate Combat UI
        unitInterface.ActivateCombatCanvas(false);

        //Continue Movement
        inCombat = false;

        //Set the timer on the GameManager
        GameManager.gameManager.CombatTimer(false);

        //Set the Animation
        unitAnimation.AnimAttack(false);

        //Stop Movement
        rb.velocity = Vector3.zero;

        //Delay combat for a moment
        CombatDelay(waitTime);


        Debug.Log("CombatEnded");
    }