private void OnEnable() { if (Event != null) { Event.AddListener(Response.Invoke); } }
private void OnEnable() { onTurnChanged.AddListener(actionPointsAdder.AddActionPoints); onElementHacked.AddListener(actionPointsAdder.OnElementHacked); onMapGenerated.AddListener(systemElementList.OnMapGenerated); onElementDestroyed.AddListener(systemElementList.OnElementDestroyed); }
private void Awake() { canvas = GetComponent <Canvas>(); background = GetComponent <Image>(); backgroundAlpha = background.color.a; panelRect = panel.rect; onGameOver.AddListener(ShowView); }
private void Start() { group = GetComponent <CanvasGroup>(); fader = GetComponent <CanvasGroupFader>(); savedAnimator = savedText.gameObject.GetComponent <Animator>(); savedAnimationId = Animator.StringToHash("Saved"); onGameSaved.AddListener(OnGameSaved); }
private void Awake() { // Nie śmiejcie się z tego :( saveables = FindObjectsOfType <MonoBehaviour>().OfType <ISaveable>().ToArray(); serializer = new GameStateSerializer(); ApplyStateBeforeMapGeneration(); onMapGenerated.AddListener(ApplyStateAfterMapGeneration); }
private void Awake() { animator = GetComponent <GalleryAnimator>(); recycler = GetComponent <GalleryViewRecycler>(); recycler.Initialize(); InitializeItems(); onImageSelected.AddListener(SelectImage); }
private void Start() { onGameOver.AddListener(StopTimer); coroutine = MeasureTime(); StartCoroutine(coroutine); }
private void OnEnable() { updateVolume.AddListener(UpdateVolume); }
private void OnEnable() { onTurnChanged.AddListener(UpdateTurnText); }
private void OnEnable() { eventToListenFor.AddListener(InvokeEvents); }
void OnEnable() { hexagonClick.AddListener(MoveToTile); onTurnChanged.AddListener(TurnChanged); onBeforeTurnChange.AddListener(BeforeTurnChange); }
private void OnEnable() { onTurnChanged.AddListener(JumpToVirusPosition); }
private void OnEnable() { onMapGenerated.AddListener(StopLoading); }
private void OnEnable() { trapIconPressed.AddListener(OnTrapIconPressed); trapIconRelesed.AddListener(OnTrapIconRelesed); }
private void OnEnable() { onEnemiesKilld.AddListener(OnEnemieKilld); onLevelPassed.AddListener(OnLevelPassed); }
private void OnEnable() { levelPassed.AddListener(() => active = false); }
private void OnEnable() { addPoints.AddListener(AddPoint); }
private void OnEnable() { //Wywołane przy starcie, by zaktualizowało się UI onMapGenerated.AddListener(OnTurnChanged.Invoke); }
private void OnEnable() { onTurnChanged.AddListener(Show); }
private void OnEnable() { EnemyDiedEvent.AddListener(EnemyDied); }
private void OnEnable() { EndGameEvent.AddListener(EnableEndGamePanel); }
private void OnEnable() { onTurnChange.AddListener(TurnChanged); onGameOver.AddListener(GameOver); }
private void OnEnable() { onTurnChanged.AddListener(UpdateText); onHackElement.AddListener(UpdateTextElement); onDestroyElement.AddListener(UpdateTextElement); }
private void OnEnable() { playerShootEvent.AddListener(PlayerShootCounter); playerHitEvent.AddListener(PlayerHitCounter); endGameEvent.AddListener(EndGame); }
private void OnEnable() { onTurnChanged.AddListener(UpdateTextAndIcon); }
private void Awake() { audio = GetComponent <GameAudio>(); onGameOver.AddListener(PlayGameOverClip); }