예제 #1
0
    public void CastSkill(string type)
    {
        if (isCastingSkill)
        {
            return;
        }

        cameraPosition = "player1dice";

        if (playerTurn == "player1")
        {
            player1Model.GetComponent <Animator>().Play("elfmage_attack1");
        }
        else if (playerTurn == "player2")
        {
            player2Model.GetComponent <Animator>().Play("elfmage_attack1");
        }


        isCastingSkill = true;
        switch (type)
        {
        case "BasicAttack":
            basicAttack.ActivateSkill(NoteText, CastCallback);
            break;

        case "TrippleAttack":
            trippleAttack.ActivateSkill(NoteText, CastCallback);
            break;

        case "Heal":
            healSkill.ActivateSkill(NoteText, CastCallback);
            break;
        }
    }