Ejemplo n.º 1
0
        public Spell GetMagicSpell(string id)
        {
            if (!MagicSpells.ContainsKey(id))
            {
                throw new GameDataException("Could not find magic spell with id " + id);
            }

            return(MagicSpells[id]);
        }
Ejemplo n.º 2
0
 void Start()
 {
     //currMana = MaxMana;
     GM = GameObject.Find("GameManager");
     MS = GameObject.Find("PlayerFunctionality").GetComponent <MagicSpells>();
     //ability2ImageFill.enabled = false;
     //ability3ImageFill.enabled = false;
     //ability4ImageFill.enabled = false;
     //LightningImageFill.enabled = false;
 }
Ejemplo n.º 3
0
 public IEnumerable <Spell> GetMagicSpells()
 {
     return(MagicSpells.Select(x => x.Value).OrderBy(x => x.Order));
 }
Ejemplo n.º 4
0
    void Orbit()
    {
        Vector2 orbitPos = (Vector2)transform.position;

        transform.position = orbitPos + (MagicSpells.ToVect(MagicSpells.ToAng(orbitPos, transform.position) + orbitSpeed) * orbitRadii);
    }