Пример #1
0
 void OnChildDeath(Monster lastMonster)
 {
     monsterCount--;
     if (monsterCount == 0)
     {
         //转化为UI位置
         Vector3 UIPos = Camera.main.WorldToScreenPoint(lastMonster.transform.position);
         UIPos.z = 0;
         AfterAllMonstersDeath.Invoke();
         if (UICellAfterAllDeath)
         {
             UICellAfterAllDeath.GetCellAnim(UIPos);
         }
     }
 }