示例#1
0
//        private float temp;

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

            defaultPlayerBrain = FindObjectOfType <RatbagPlayerBrain>();

            thisScene = SceneManager.GetActiveScene();
        }
        void OnEnable()
        {
            audioLib = StaticUtilities.ReturnDefaultAudioLibrary();

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

            for (int i = 0; i < playerResetters.Length; i++)
            {
                playerResetters[i].OnPlayerReset += CallingGameReset;
            }
        }