private void MyDestroyShiftCheck(IGameEvent obj) { StandardSendGameEvent ssge = (StandardSendGameEvent)obj; if (MyKeys.VerificaAutoShift((string)ssge.MyObject[0])) { Destroy((GameObject)ssge.MyObject[1]); } }
private void OnIdDestroyCheck(IGameEvent e) { StandardSendGameEvent ssge = (StandardSendGameEvent)e; if (MyKeys.VerificaAutoShift((KeyShift)ssge.MyObject[0])) { Destroy((GameObject)ssge.MyObject[1]); } }