Пример #1
0
        void OnEnable()
        {
            lockInput   = false;
            controllers = StaticUtilities.ReturnOnlyActiveControllers <IPlayerInput2D>(GetComponents <IPlayerInput2D>(), this);

            if (controllers == null)
            {
                StaticUtilities.NoControllerFound();
            }
        }
Пример #2
0
        void OnEnable()
        {
            audioLib = StaticUtilities.ReturnDefaultAudioLibrary();

            playerResetters = StaticUtilities.ReturnOnlyActiveControllers <IPlayerResettable>(GetComponents <IPlayerResettable>(), this);

            for (int i = 0; i < playerResetters.Length; i++)
            {
                playerResetters[i].OnPlayerReset += CallingGameReset;
            }
        }
Пример #3
0
 private void OnEnable()
 {
     componentsToUpdate = StaticUtilities.ReturnOnlyActiveControllers <IChargeUpdatable>(GetComponents <IChargeUpdatable>(), this);
 }
Пример #4
0
 private void InitialiseChangeOfSearchingStatusComponents()
 {
     searchingComponents = StaticUtilities.ReturnOnlyActiveControllers <ISearchingStatusChangable>(GetComponents <ISearchingStatusChangable>(), this);
 }
Пример #5
0
 private void InitialiseTargetUpdatableComponents()
 {
     targettingComponents = StaticUtilities.ReturnOnlyActiveControllers <ITargetUpdatable>(GetComponents <ITargetUpdatable>(), this);
 }
Пример #6
0
        void OnEnable()
        {
            tripPlayerables = StaticUtilities.ReturnOnlyActiveControllers <ITripPlayerable>(GetComponents <ITripPlayerable>(), this);

            SetUpTrippingInterfaces();
        }