Esempio n. 1
0
 void Awake()
 {
     audio.playOnAwake = false;
     m_upper           = this.transform.root.GetComponentInChildren <bl_UpperAnimations>();
     if (IsGun != null)
     {
         WeaponID     = IsGun.GunID;
         m_weaponType = IsGun.typeOfGun;
     }
     else
     {
         Debug.LogError("This NetworkGun No have reference of GUN");
     }
 }
Esempio n. 2
0
 void Awake()
 {
     GetComponent <AudioSource>().playOnAwake = false;
     m_upper = this.transform.root.GetComponentInChildren <bl_UpperAnimations>();
     if (DesactiveOnOffAmmo)
     {
         defaultMat = DesactiveOnOffAmmo.material;
     }
     if (IsGun != null)
     {
         WeaponID     = IsGun.GunID;
         m_weaponType = IsGun.typeOfGun;
     }
     else
     {
         Debug.LogError("This NetworkGun No have reference of GUN");
     }
 }
Esempio n. 3
0
 void Awake()
 {
     GetComponent<AudioSource>().playOnAwake = false;
     m_upper = this.transform.root.GetComponentInChildren<bl_UpperAnimations>();
     if (DesactiveOnOffAmmo)
     {
         defaultMat = DesactiveOnOffAmmo.material;
     }
     if (IsGun != null)
     {
         WeaponID = IsGun.GunID;
         m_weaponType = IsGun.typeOfGun;
     }
     else
     {
         Debug.LogError("This NetworkGun No have reference of GUN");
     }
 }
Esempio n. 4
0
 public void ChangeType(bl_Gun.weaponType _type)
 {
     m_WeaponType = _type;
     isIdle = false;
 }
Esempio n. 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_type"></param>
 public void ChangeType(bl_Gun.weaponType _type)
 {
     m_WeaponType = _type;
     isIdle       = false;
 }