コード例 #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();
        }