Exemplo n.º 1
0
//        private float temp;

        void OnEnable()
        {
            audioLib = StaticUtilities.ReturnDefaultAudioLibrary();

            defaultPlayerBrain = FindObjectOfType <RatbagPlayerBrain>();

            thisScene = SceneManager.GetActiveScene();
        }
Exemplo n.º 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;
            }
        }