示例#1
0
 void Awake()
 {
     m_mouse          = transform.root.GetComponentInChildren <bl_MouseLook>();
     GunBob           = transform.root.GetComponentInChildren <bl_GunBob>();
     SwayGun          = this.transform.root.GetComponentInChildren <bl_DelaySmooth>();
     Sync             = GameObject.FindWithTag("WeaponManager").GetComponent <bl_SyncWeapon>();
     Cross            = bl_UtilityHelper.GetGameManager.gameObject.GetComponent <bl_Crosshair>();
     DefaultSpreat    = baseSpread;
     DefaultMaxSpread = maxSpread;
 }
示例#2
0
文件: bl_Gun.cs 项目: SaltPeter/fps
 void Awake()
 {
     m_mouse = transform.root.GetComponentInChildren<bl_MouseLook>();
     GunBob = transform.root.GetComponentInChildren<bl_GunBob>();
     SwayGun = this.transform.root.GetComponentInChildren<bl_DelaySmooth>();
     Sync = GameObject.FindWithTag("WeaponManager").GetComponent<bl_SyncWeapon>();
     Cross = bl_UtilityHelper.GetGameManager.gameObject.GetComponent<bl_Crosshair>();
     DefaultSpreat = baseSpread;
     DefaultMaxSpread = maxSpread;
 }