コード例 #1
0
 // 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;
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     this._greenCaterpillar = GetComponentInParent <GreenCaterpillarController> ();
     this._player           = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController> ();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     this._greenCaterpillar = GetComponentInParent <GreenCaterpillarController> ();
 }