예제 #1
0
 void Start()
 {
     controller = GetComponent<CharacterController>();
     wepGUI = GameObject.FindObjectOfType<WeaponGUI>();
     currentGun = guns[0];
     EquipGun(0);
 }
예제 #2
0
 void Start()
 {
     controller = GetComponent <CharacterController>();
     wepGUI     = GameObject.FindObjectOfType <WeaponGUI>();
     currentGun = guns[0];
     EquipGun(0);
 }
예제 #3
0
파일: CurrentWeapon.cs 프로젝트: cyb-/HnS
 // Use this for initialization
 void Start()
 {
     if (curWeapon == null) {
         curWeapon = GetComponent<weaponScript>();
     }
     if (showCurrentWeapon == null) {
         showCurrentWeapon = GetComponent<WeaponGUI>();
     }
 }