Esempio n. 1
0
        public override void Collect(Classes.Player player)
        {
            Spells.InvertGravity invert = (Spells.InvertGravity)player.GetSpell("InvertGravity");
            player.ReceiveBuff(invert);
            invert.Cast();

            this.GetUI(player).SetSpellText("Invert Gravity", 1);
            GameObject.Instantiate(Resources.Load("Effects\\PurpleEffect"), player.transform.position, Quaternion.identity);
        }
Esempio n. 2
0
        // Use this for initialization
        void Start()
        {
            this.healthSlider.value = this.healthSlider.maxValue;
            this.player             = this.playerObj.GetComponent <Classes.Player>();
            this.blink   = (Spells.Blink) this.player.GetSpell("Blink");
            this.laser   = (Spells.Laser) this.player.GetSpell("Laser");
            this.invuln  = (Spells.Invulnerability) this.player.GetSpell("Invulnerability");
            this.shield  = (Spells.Health) this.player.GetSpell("Health");
            this.gravity = (Spells.InvertGravity) this.player.GetSpell("InvertGravity");

            this.ToggleSpellUI(false);
        }