using Axibug.Runtime; using UnityEngine; using UnityEditor; using Axibug.Resources; using System.Collections.Generic; using System.Diagnostics.SymbolStore; using System.Runtime.Remoting.Metadata.W3cXsd2001; namespace Game { public class BulletMgrNoMono : NoMono { public PrefabPoolForPath _BulletPool; #region 生命周期 public BulletMgrNoMono(string Name, Transform trans = null) : base(Name, trans) { _BulletPool = new PrefabPoolForPath(this.transform, E_PREFAB_TYPE.NONE, Common.GetBulletProfabPath("1")); //注册回调 AddEvent(E_LIFE_MONO_CYCLE.Update | E_LIFE_MONO_CYCLE.FixUpdate); } public override void Update() { } public override void FixedUpdate() { } public override void OnApplicationPause() { } public override void OnApplicationQuit() { } #endregion void NewBullet() { GameObject obj = _BulletPool.GetAnyHide(); obj.GetHashCode(); } } }