示例#1
0
 void OnEntitySpawned(BaseNetworkable entity)
 {
     if (entity.GetComponent("BaseCorpse"))
     {
         BaseCorpse corpse = entity as BaseCorpse;
         corpse.RemoveCorpse();
     }
     if (entity.GetComponent("BaseNPC"))
     {
         BaseNPC npc = entity as BaseNPC;
         npc.Kill();
     }
 }