예제 #1
0
 /// <summary>
 /// 殺死此物件
 /// </summary>
 /// <param name="killer">殺手物件</param>
 /// <param name="deadType">死亡類型</param>
 public virtual void Kill(ObjectBase killer, ObjectDeadType deadType)
 {
     if (Status == ObjectStatus.Alive)
     {
         Status = ObjectStatus.Dead;
         Propertys.AllDoAfterDead(killer, deadType);
         OnDead(this, killer, deadType);
     }
 }