示例#1
0
 private void Start()
 {
     GetGun   = GameObject.FindGameObjectWithTag("Gunposition").GetComponent <GetGun>();
     bullUI   = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>();
     Health   = health;
     Render   = GetComponent <Renderer>();
     PlayerUI = GameObject.FindGameObjectWithTag("PlayerUI").GetComponent <PlayerUI>();
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>();
     foreach (GameObject Gun in Gun)
     {
         Gun.SetActive(false);
     }
     nowgun     = 0;
     currentgun = 0;
     Gun[currentgun].SetActive(true);
 }
示例#3
0
 void Start()
 {
     GetGun = GameObject.FindGameObjectWithTag("Gunposition").GetComponent <GetGun>();
     bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>();
 }
示例#4
0
 private void Start()
 {
     bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>();
 }