コード例 #1
0
        static void FindDisplayController()
        {
            DisplayController = GameObject.FindObjectOfType <DumpTruckView>();
#if UNITY_EDITOR
            if (DisplayController == null && !HideWarnings)
            {
                Debug.LogError("No '" + nameof(GreenPandaAssets.Scripts.DumpTruck.DumpTruckView) + "' component present in the scene!");
            }
#endif
        }
コード例 #2
0
 static void OnSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     // Make sure we empty all our static references every time the new scene is loaded.
     AnimatedProps         = null;
     CheckpointService     = null;
     NullCheckpointService = null;
     CoinCointer           = null;
     NullCoinCounter       = null;
     VoiceoverService      = null;
     NullVoiceoverService  = null;
     AllLocations          = null;
     LoadTruck             = null;
     ControllerService     = null;
     UnloadTruck           = null;
     QuaryUpgradable       = null;
     DisplayController     = null;
 }