Beispiel #1
0
        protected override void OnShow(object userData)
        {
            base.OnShow(userData);

            m_EnemyTankData = userData as EnemyTankData;
            if (m_EnemyTankData == null)
            {
                Log.Error("Enemy tank data is invalid.");
                return;
            }

            string m_TankId = m_EnemyTankData.TankId;

            Debug.Log("Add Tank Id" + m_TankId);
            GameEntry.LockManager.AddActor(m_TankId, this);
            Debug.Log("!~!!!!!!! AddActor - " + m_TankId + " + " + this.Name);
        }
Beispiel #2
0
 public static void ShowEnemyTank(this EntityComponent entityComponent, EnemyTankData data)
 {
     entityComponent.ShowEntity(typeof(EnemyTank), "Tank", Constant.AssetPriority.MyTankAsset, data);
 }