Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     player       = GameObject.FindGameObjectWithTag("Player");
     playerscript = player.GetComponent(typeof(PlayerController)) as PlayerController;
     spells       = player.GetComponent(typeof(Spells)) as Spells;
     scs          = player.GetComponent(typeof(SpellCastScript)) as SpellCastScript;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     worth             = 100;
     moveSpeed         = 1.5f;
     moveSpeedOriginal = moveSpeed;
     currentHealth     = 450;
     maxHealth         = 450;
     isStunned         = false;
     isMoving          = false;
     immunityFrames    = false;
     stunDuration      = 0;
     player            = GameObject.FindGameObjectWithTag("Player");
     playerscript      = player.GetComponent(typeof(PlayerController)) as PlayerController;
     scs = player.GetComponent(typeof(SpellCastScript)) as SpellCastScript;
     StartCoroutine(dontgetstuck());
     //pc = player.GetComponent(typeof(PlayerController)) as PlayerController;
 }
Esempio n. 3
0
 void Start()
 {
     player       = GameObject.FindGameObjectWithTag("Player");
     playerscript = (PlayerController)player.GetComponent(typeof(PlayerController));
     spells       = (Spells)player.GetComponent(typeof(Spells));
     spellcast    = player.GetComponent(typeof(SpellCastScript)) as SpellCastScript;
     if (playerscript.getSpellL() != -1)
     {
         timeL = spells.getSpellCD(playerscript.getSpellL());
     }
     if (playerscript.getSpellR() != -1)
     {
         timeR = spells.getSpellCD(playerscript.getSpellR());
     }
     if (playerscript.getSpell1() != -1)
     {
         time1 = spells.getSpellCD(playerscript.getSpell1());
     }
     if (playerscript.getSpell2() != -1)
     {
         time2 = spells.getSpellCD(playerscript.getSpell2());
     }
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     playerscript = player.GetComponent(typeof(PlayerController)) as PlayerController;
     spells = player.GetComponent(typeof(Spells)) as Spells;
     scs = player.GetComponent(typeof(SpellCastScript)) as SpellCastScript;
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     worth = 100;
     moveSpeed = 1.5f;
     moveSpeedOriginal = moveSpeed;
     currentHealth = 450;
     maxHealth = 450;
     isStunned = false;
     isMoving = false;
     immunityFrames = false;
     stunDuration = 0;
     player = GameObject.FindGameObjectWithTag("Player");
     playerscript = player.GetComponent(typeof(PlayerController)) as PlayerController;
     scs = player.GetComponent(typeof(SpellCastScript)) as SpellCastScript;
     StartCoroutine(dontgetstuck());
     //pc = player.GetComponent(typeof(PlayerController)) as PlayerController;
 }
Esempio n. 6
0
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     playerscript = (PlayerController)player.GetComponent(typeof(PlayerController));
     spells = (Spells)player.GetComponent(typeof(Spells));
     spellcast = player.GetComponent(typeof(SpellCastScript)) as SpellCastScript;
     if (playerscript.getSpellL() != -1)
     timeL = spells.getSpellCD(playerscript.getSpellL());
     if (playerscript.getSpellR() != -1)
     timeR = spells.getSpellCD(playerscript.getSpellR());
     if (playerscript.getSpell1() != -1)
     time1 = spells.getSpellCD(playerscript.getSpell1());
     if (playerscript.getSpell2() != -1)
     time2 = spells.getSpellCD(playerscript.getSpell2());
 }