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"); } }
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"); } }
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"); } }
public void ChangeType(bl_Gun.weaponType _type) { m_WeaponType = _type; isIdle = false; }
/// <summary> /// /// </summary> /// <param name="_type"></param> public void ChangeType(bl_Gun.weaponType _type) { m_WeaponType = _type; isIdle = false; }