예제 #1
0
        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", data);
 }