Example #1
0
 IEnumerator Start()
 {
     Physics.reuseCollisionCallbacks = true;
     Config.instance = Resources.Load <Config>("config");
     ScreenService.Init();
     ResourceService.Init();
     CollisionService.Init();
     stage.Init();
     // var t = ResourceService.Init();
     // while ( !t.IsCompleted ) {
     //  yield return null;
     // }
     // Debug.Log( "r: " + t.Result );
     initialzied_ = true;
     yield return(null);
 }
Example #2
0
 public static void Init()
 {
     instance_ = new ScreenService();
     instance_.AdjustIfNeeded();
 }