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; }
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; }