public void Initialize(IOwner owner, GlobalWeapon wInfo) { m_WeaponInfo = wInfo; SetFactoryProjectile(ManagerProjectile.GetIPoolElement((ProjectileType)wInfo.Info.TypeProjectile)); //if(owner.GameObj.IsPlayer()) Debug.LogError(wInfo.FireTime); YI_ttbs = new WaitForSeconds(wInfo.FireTime); YI_ttra = new WaitForSeconds(wInfo.ReloadTime); m_ProjData.Init(wInfo.Info, wInfo.Info.InstantProjectile); m_CurDispersion = wInfo.DispersionMin; ActiveStreamReload(true); if (owner != null) { if (owner.Anchor != null) { m_ViewControl.LinkToAnchor(owner.Anchor.GetAnchor((int)wInfo.Info.SlotType)); } m_ProjData.Owner = owner; } }