Ejemplo n.º 1
0
        private void HealthManager_Die(On.HealthManager.orig_Die orig, HealthManager self, float?attackDirection, AttackTypes attackType, bool ignoreEvasion)
        {
            //Log("ENEMY HAS DIED");

            //HollowPointPrefabs.SpawnObjectFromDictionary("Hatchling", self.transform.position, Quaternion.identity);

            orig(self, attackDirection, attackType, ignoreEvasion);
        }
Ejemplo n.º 2
0
 private static void HealthManager_Die(On.HealthManager.orig_Die orig, HealthManager self, float?attackDirection, AttackTypes attackType, bool ignoreEvasion)
 {
     if (self is HealthManagerProxy)
     {
         var proxy = (HealthManagerProxy)self;
         proxy.weaverHealth.Die();
     }
     else
     {
         orig(self, attackDirection, attackType, ignoreEvasion);
     }
 }