private void OnEnable()
 {
     if (Event != null)
     {
         Event.AddListener(Response.Invoke);
     }
 }
示例#2
0
    private void OnEnable()
    {
        onTurnChanged.AddListener(actionPointsAdder.AddActionPoints);
        onElementHacked.AddListener(actionPointsAdder.OnElementHacked);

        onMapGenerated.AddListener(systemElementList.OnMapGenerated);
        onElementDestroyed.AddListener(systemElementList.OnElementDestroyed);
    }
示例#3
0
    private void Awake()
    {
        canvas          = GetComponent <Canvas>();
        background      = GetComponent <Image>();
        backgroundAlpha = background.color.a;
        panelRect       = panel.rect;

        onGameOver.AddListener(ShowView);
    }
示例#4
0
    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);
    }
示例#6
0
    private void Awake()
    {
        animator = GetComponent <GalleryAnimator>();
        recycler = GetComponent <GalleryViewRecycler>();
        recycler.Initialize();

        InitializeItems();

        onImageSelected.AddListener(SelectImage);
    }
示例#7
0
文件: Timer.cs 项目: dave95b/Puzzles
 private void Start()
 {
     onGameOver.AddListener(StopTimer);
     coroutine = MeasureTime();
     StartCoroutine(coroutine);
 }
示例#8
0
 private void OnEnable()
 {
     updateVolume.AddListener(UpdateVolume);
 }
示例#9
0
 private void OnEnable()
 {
     onTurnChanged.AddListener(UpdateTurnText);
 }
示例#10
0
 private void OnEnable()
 {
     eventToListenFor.AddListener(InvokeEvents);
 }
示例#11
0
 void OnEnable()
 {
     hexagonClick.AddListener(MoveToTile);
     onTurnChanged.AddListener(TurnChanged);
     onBeforeTurnChange.AddListener(BeforeTurnChange);
 }
 private void OnEnable()
 {
     onTurnChanged.AddListener(JumpToVirusPosition);
 }
示例#13
0
 private void OnEnable()
 {
     onMapGenerated.AddListener(StopLoading);
 }
示例#14
0
 private void OnEnable()
 {
     trapIconPressed.AddListener(OnTrapIconPressed);
     trapIconRelesed.AddListener(OnTrapIconRelesed);
 }
示例#15
0
 private void OnEnable()
 {
     onEnemiesKilld.AddListener(OnEnemieKilld);
     onLevelPassed.AddListener(OnLevelPassed);
 }
示例#16
0
 private void OnEnable()
 {
     levelPassed.AddListener(() => active = false);
 }
示例#17
0
 private void OnEnable()
 {
     addPoints.AddListener(AddPoint);
 }
示例#18
0
 private void OnEnable()
 {
     //Wywołane przy starcie, by zaktualizowało się UI
     onMapGenerated.AddListener(OnTurnChanged.Invoke);
 }
示例#19
0
 private void OnEnable()
 {
     onTurnChanged.AddListener(Show);
 }
示例#20
0
 private void OnEnable()
 {
     EnemyDiedEvent.AddListener(EnemyDied);
 }
示例#21
0
 private void OnEnable()
 {
     EndGameEvent.AddListener(EnableEndGamePanel);
 }
示例#22
0
 private void OnEnable()
 {
     onTurnChange.AddListener(TurnChanged);
     onGameOver.AddListener(GameOver);
 }
示例#23
0
 private void OnEnable()
 {
     onTurnChanged.AddListener(UpdateText);
     onHackElement.AddListener(UpdateTextElement);
     onDestroyElement.AddListener(UpdateTextElement);
 }
示例#24
0
 private void OnEnable()
 {
     playerShootEvent.AddListener(PlayerShootCounter);
     playerHitEvent.AddListener(PlayerHitCounter);
     endGameEvent.AddListener(EndGame);
 }
示例#25
0
 private void OnEnable()
 {
     onTurnChanged.AddListener(UpdateTextAndIcon);
 }
示例#26
0
 private void Awake()
 {
     audio = GetComponent <GameAudio>();
     onGameOver.AddListener(PlayGameOverClip);
 }