Ejemplo n.º 1
0
    private void Spell()
    {
        if (canCast)
        {
            PlayerMana.DecreaseMana(actionCost * 100);

            GameObject multishot = Resources.Load <GameObject>("Prefabs/Skills/Multishot");
            GameObject instance  = Instantiate(multishot, base.transform.position, base.transform.rotation, null);
            instance.transform.up = PlayerMovement.FacingDirection;
            canCast = false;
        }
    }