private static void OnDestroy(GameObject sender) { if (AxeList.Any(o => o.Key.NetworkId == sender.NetworkId)) { AxeList.Remove(sender); } }
private static void OnDestroy(GameObject sender) { if (sender != null && sender.Name.Contains("Draven_") && sender.Name.Contains("_Q_reticle_self")) { if (AxeList.Any(o => o.Key.NetworkId == sender.NetworkId)) { AxeList.Remove(sender); } } }
private static void OnDestroy(GameObject sender) { try { if (AxeList.Any(o => o.Key.NetworkId == sender.NetworkId)) { AxeList.Remove(sender); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnDestroy." + ex); } }