Пример #1
0
 public override void Collect(Classes.Player player)
 {
     // Give player the ability to cast Blink.
     player.ReceiveBuff((Spells.Buff)player.GetSpell("Health"));
     player.CastSpell("Health");
     this.GetUI(player).SetSpellText("Health Shield", 1);
     GameObject.Instantiate(Resources.Load("Effects\\GreenEffect"), player.transform.position, Quaternion.identity);
 }
Пример #2
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);
        }
Пример #3
0
        public override void Collect(Classes.Player player)
        {
            // Give player the ability to cast Blink.
            Spells.Blink blink = (Spells.Blink)player.GetSpell("Blink");
            player.ReceiveBuff(blink);

            this.GetUI(player).SetSpellText("Blink", 5);
            GameObject.Instantiate(Resources.Load("Effects\\BlueEffect"), player.transform.position, Quaternion.identity);
        }
Пример #4
0
        public override void Collect(Classes.Player player)
        {
            // Give player the ability to cast Blink.
            Spells.Invulnerability invulnerability = (Spells.Invulnerability)player.GetSpell("Invulnerability");

            player.ReceiveBuff(invulnerability);

            invulnerability.Cast();
            invulnerability.SetCharges(1);

            this.GetUI(player).SetSpellText("Invulnerability", 1);
            GameObject.Instantiate(Resources.Load("Effects\\BlackEffect"), player.transform.position, Quaternion.identity);
        }