示例#1
0
 // Use this for initialization
 void Start()
 {
     player  = GameObject.FindGameObjectWithTag("Player");
     partdel = player.GetComponent <Addpart>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     player  = GameObject.FindGameObjectWithTag("Player");
     destroy = player.GetComponent <Addpart>();
     hp      = player.GetComponent <hpsripty>();
 }