void OnEnable()
        {
            lockInput   = false;
            controllers = StaticUtilities.ReturnOnlyActiveControllers <IPlayerInput2D>(GetComponents <IPlayerInput2D>(), this);

            if (controllers == null)
            {
                StaticUtilities.NoControllerFound();
            }
        }
        void OnEnable()
        {
            audioLib = StaticUtilities.ReturnDefaultAudioLibrary();

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

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

            SetUpTrippingInterfaces();
        }