// Start is called before the first frame update
 void Start()
 {
     canOpenRhino = true;
     cmp_RhinoMod = GetComponent <Enemy_RhinoModel>();
     cmp_mov      = GetComponent <Movement>();
     cmp_rot      = GetComponent <Rotatement>();
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        cmp_mov   = GetComponent <Movement>();
        cmp_tools = GetComponent <TimersNTools>();
        cmp_rot   = GetComponent <Rotatement>();

        to_down = false;
        timer   = 0;
        //cmp_tools.Timer_for_bools()
    }
Beispiel #3
0
    // Start is called before the first frame update
    void Start()
    {
        cmp_mov     = GetComponent <Movement>();
        cmp_rot     = GetComponent <Rotatement>();
        cmp_trgrDmg = GetComponent <InstantTrigerDamage>();

        if (GameObject.Find("Player"))
        {
            target = GameObject.Find("Player").transform;
            RotToPlayer(); //owo
        }
    }
Beispiel #4
0
    // Start is called before the first frame update
    void Start()
    {
        cmp_rot  = GetComponent <Rotatement>();
        cmp_rb   = GetComponent <Rigidbody>();
        cmp_mov  = GetComponent <Movement>();
        atacking = false;

        if (sword_obj && sword_obj.activeSelf == true)
        {
            sword_obj.SetActive(false);
        }
        if (spear_obj && spear_obj.activeSelf == true)
        {
            spear_obj.SetActive(false);
        }
    }
Beispiel #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;
    }
Beispiel #6
0
 // Start is called before the first frame update
 void Start()
 {
     cmp_life = GetComponent <Life>();
     //EnemyHasHelmet = false;
     cmp_life.protec  = EnemyHasHelmet;
     cmp_enemyLionMod = GetComponent <Enemy_LionModel>();
     cmp_mov          = GetComponent <Movement>();
     cmp_rot          = GetComponent <Rotatement>();
     cmp_atk          = GetComponent <Attacks>();
     follow           = true;
     cmp_life.life    = cmp_enemyLionMod.enemyLife;
     if (GameObject.Find("Player"))
     {
         target = GameObject.Find("Player").transform;
         player = GameObject.Find("Player");
     }
 }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     cmp_rot = GetComponent <Rotatement>();
 }