예제 #1
0
 void Awake()
 {
     _inst      = this;
     _transform = transform;
     _offset    = new Vector3(-9.58f, 11.54f, -9.04f);
     enabled    = false;
 }
예제 #2
0
 public void ReAddChar(CharHandler handler)
 {
     if (BattleEnum.Enum_CharSide.Mine == handler.m_CharData.m_eSide)
     {
         m_listDeadMine.Remove(handler);
         if (BattleCamera.GetInst().m_CharHandler == handler)                    //被动复活集合顺序不能乱
         {
             m_listGeneralMine.Insert(0, handler);
         }
         else
         {
             m_listGeneralMine.Add(handler);
         }
     }
     else
     {
         m_listDeadEnemy.Remove(handler);
         m_listGeneralEnemy.Add(handler);
     }
 }
예제 #3
0
 private void OnDestroy()
 {
     _inst = null;
 }