示例#1
0
 private static void Entities_OnCloseAll()
 {
     MyAPIGateway.Entities.OnCloseAll -= Entities_OnCloseAll;
     Instance = null;
 }
示例#2
0
 public DamageHandler()
 {
     m_logger = new Logger();
     MyAPIGateway.Session.DamageSystem.RegisterBeforeDamageHandler((int)MyDamageSystemPriority.Low, BeforeDamageApplied);
     Instance = this;
 }
示例#3
0
 public DamageHandler()
 {
     m_logger = new Logger(GetType().Name);
     MyAPIGateway.Session.DamageSystem.RegisterBeforeDamageHandler((int)MyDamageSystemPriority.Low, BeforeDamageApplied);
     Instance = this;
 }
示例#4
0
 private static void Entities_OnCloseAll()
 {
     MyAPIGateway.Entities.OnCloseAll -= Entities_OnCloseAll;
     Instance = null;
 }