示例#1
0
        public void BeHurt()
        {
            MiroModelV1 miro = CellObjCtrlUtils.GetMiroModelFromCell(_cellCtrl);

            List <MiroModelV1> enemies =
                CellObjCtrlUtils.GetNbEnemiesPointToThis(_cellCtrl);

            foreach (var en in enemies)
            {
                //en.CeaseAttacking ();
                en.SetAttackTarget(miro);
                en.UpdateAttackTarget();
                //print (en + " SetAttackTarget as:" + miro);
            }
        }