예제 #1
0
 void Start()
 {
     creativeMode = PlayerPrefs.GetInt("creativeMode") > 0;
     mapMaker     = FindObjectOfType <MapMaker>();
     if (creativeMode)
     {
         TimeTracker timeTracker = GetComponent <TimeTracker>();
         if (timeTracker)
         {
             timeTracker.SetTimeScale(0);
         }
     }
 }