protected override void OnShow(object userData) { base.OnShow(userData); data = userData as BulletData; if (data == null) { Debug.LogError("Bullet data is invalid."); return; } }
protected internal override void OnShow(object userData) { base.OnShow(userData); m_BulletData = userData as BulletData; if (m_BulletData == null) { Log.Error("Bullet data is invalid."); return; } }
public static void ShowBullet(this EntityComponent entityCompoennt, BulletData data) { entityCompoennt.ShowEntity(typeof(Bullet), "Bullet", Constant.AssetPriority.BulletAsset, data); }
public static void ShowBullet(this EntityComponent entityCompoennt, BulletData data) { entityCompoennt.ShowEntity(typeof(Bullet), "Bullet", data); }