public void OnPenguinSelected(EventPenguin pEvent) { activePenguin = pEvent.Penguin; FireStart(); OnActivePenguinChangedEvent.Penguin = activePenguin; OnActivePenguinChangedEvent.Raise(); }
/// <summary> /// Methoda, která je vyvolána, když je penguin vybrán (Lean Selection) /// </summary> public void OnSelect() { if (!playing) { return; } if (OnPenguinSelected != null) { OnPenguinSelected.Penguin = this; OnPenguinSelected.Raise(); } }