Ejemplo n.º 1
0
    private void Spell(float _duration, GameObject _spellInstance)     // Spawns a cloud on the player position and sets its duration
    {
        _spellInstance.transform.position = Player.transform.position; //sets the cloud position to the position of the player (GETS MAYBE CHANGED WITH OTHER CAMERA MOVEMENT)

        SpellActions mySpell = _spellInstance.GetComponent <SpellActions>();

        mySpell.SetSpellDuration(_duration);
        _spellInstance.SetActive(true);                                          //activates the cloud
    }