/// <summary> /// Send BecameInvisible event when object BecameInvisible (out of screen) /// </summary> void OnBecameInvisible() { BecameInvisible?.Invoke(); }
private void OnBecameInvisible() { BecameInvisible?.Invoke(this); }
private void OnObjectBecameInvisibe(MapObject mapObject) { mapObject.BecameInvisible -= OnObjectBecameInvisibe; BecameInvisible?.Invoke(this); }