Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     cmp_enemyBoss = GameObject.FindGameObjectWithTag("Boss").GetComponent <Enemy_BossModel>();
     cmp_scnChng   = GetComponent <SceneChange>();
     cmp_scnCh     = GetComponent <TransitionInScene>();
     cmp_PlyMod    = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerModelo>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     tutoTimer      = 0;
     rhinoTimer     = 15;
     cmp_playerMod  = GameObject.Find("Player").GetComponent <PlayerModelo>();
     cmp_playerCtrl = GameObject.Find("Player").GetComponent <PlayerController>();
     if (GameObject.Find("LevelStat"))
     {
         cmp_lvlSt = GameObject.Find("LevelStat").GetComponent <LevelStats>();
     }
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     cmp_spwn = GetComponent <Spawning>();
     if (GameObject.Find("Player"))
     {
         cmp_plyMod = GameObject.Find("Player").GetComponent <PlayerModelo>();
     }
     if (GameObject.Find("LevelStat"))
     {
         cmp_levelSt = GameObject.Find("LevelStat").GetComponent <LevelStats>();
     }
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     cmp_ctrl      = GetComponent <PlayerController>();
     cmp_playerMod = GetComponent <PlayerModelo>();
     cmp_atk       = GetComponent <Attacks>();
     heart1        = GameObject.Find("Heart1");
     heart2        = GameObject.Find("Heart2");
     heart3        = GameObject.Find("Heart3");
     swordImage    = GameObject.Find("SwordImage");
     spearImage    = GameObject.Find("SpearImage");
     shieldImage   = GameObject.Find("Shield1");
 }
Example #5
0
    //-------------------------//

    // Start is called before the first frame update
    void Start()
    {
        actualDrag       = GetComponent <Rigidbody>().drag;
        inmuneTimer      = 0;
        cmp_test         = GetComponent <testscript>();
        cmp_modelo_Ply   = GetComponent <PlayerModelo>();
        cmp_plyView      = GetComponent <PlayerView>();
        cmp_grnd_Updater = GetComponent <GroundStatsUpdater>();
        cmp_mov          = GetComponent <Movement>();
        cmp_rot          = GetComponent <Rotatement>();
        cmp_atk          = GetComponent <Attacks>();
        cmp_timers       = GetComponent <TimersNTools>();
        cmp_life         = GetComponent <Life>();
        cmp_life.life    = cmp_modelo_Ply.playerLife;
        protecting       = false;
        cmp_life.protec  = protecting;
    }
Example #6
0
 // Use this for initialization
 void Start()
 {
     instance = this;
 }
Example #7
0
 // Start is called before the first frame update
 void Start()
 {
     cmp_playerMod = GameObject.Find("Player").GetComponent <PlayerModelo>();
 }