private void Awake()
    {
        _rspw       = GetComponentInParent <RespawnsController>();
        _checkpoint = GetComponent <Animator>();
        _lsr        = GetComponent <LightSmartRender>();

        _light = transform.GetChild(0).gameObject;
        _light.SetActive(false);
    }
Beispiel #2
0
 private void Start()
 {
     _playerIn = false;
     _player   = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
     _light    = this.gameObject.transform.GetChild(0).gameObject;
     _lsr      = _light.GetComponent <LightSmartRender>();
     _light.SetActive(false);
     _lsr._active = false;
 }
Beispiel #3
0
 void Awake()
 {
     _luz        = transform.GetChild(0).gameObject;
     _controller = GetComponentInParent <ControladorLuces>();
     _lsr        = GetComponent <LightSmartRender>();
 }