示例#1
0
 void Start()
 {
     getHealthScript = new health();
     getHealthScript = GameObject.FindGameObjectWithTag("Scripts").GetComponent <health>();
     shieldScript    = new activeShield();
     shieldScript    = GameObject.FindGameObjectWithTag("Scripts").GetComponent <activeShield>();
 }
示例#2
0
 void Start()
 {
     prePos       = new Vector3(0, -2.11f, -13.7f);
     shieldScript = new activeShield();
     shieldScript = GameObject.FindGameObjectWithTag("Scripts").GetComponent <activeShield>();
 }