// Use this for initialization void Start() { this._greenCaterpillar = GetComponentInParent <GreenCaterpillarController> (); //this.player = GameObject.FindGameObjectWithTag ("Player").GetComponent<PlayerHealth> (); this._damageLight = GetComponentInChildren <Light> (); this._damageLight.enabled = false; this._currentTimeLight = 0; this._currentDamage = 0; }
// Use this for initialization void Start() { this._greenCaterpillar = GetComponentInParent <GreenCaterpillarController> (); this._player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController> (); }
// Use this for initialization void Start() { this._greenCaterpillar = GetComponentInParent <GreenCaterpillarController> (); }