// for the case where there is more complex logic we have a place to put it public override void OnDestinationReached() { if (Owner is Hero) { AudioComponent.StopSound(Sounds.RUNNING); } OnFinished(EnergyCost); }
private void FinishLoading() { if (area.AreaData.areaType == AreaTypes.MOB_ROOM || area.AreaData.areaType == AreaTypes.BOSS_ROOM) { tracker = new UnitTrackerComponent(); tracker.StartTrackingMonstersLeft(area.Board); SetupMobRoom.DisableEntrances(area.Board); } AudioComponent.StopSound(Sounds.RUNNING); onAreaLoaded(); }