예제 #1
0
    public static void TransitLocation(string name)
    {
        IGame.buffer.MoveToLocation(name);
        int index = SceneUtility.GetBuildIndexByScenePath("Assets/Scenes/Locations/" + name + ".unity");

        ISpace.LoadLevel(index);
    }
예제 #2
0
 public static void LoadGameFromIndex(int gameIndex)
 {
     if (IGame.Exist(gameIndex))
     {
         IGame.Load(gameIndex);
         IGame.currentProfile = gameIndex;
         ISpace.LoadLevel(3);
     }
 }
예제 #3
0
 public void SaveAndPlay()
 {
     IGame.buffer = new IGame(new ISaveble[1], IQuest.GetStart());
     //status.items = IItemAsset.GetAllInventory ();
     status.euler_y  = 180f;
     status.position = new IVector(-12, 0, -14.5f);
     status.items    = IItemAsset.GetStartKit(status);
     status.SetSpellsTodayBy();
     IGame.buffer.currentLocation.objects [0] = status;
     IGame.currentProfile = slotIndex;
     ISpace.LoadLevel(3);
 }
예제 #4
0
 private void LoadCreateScene(int index)
 {
     ICreateMenu.slotIndex = index;
     ISpace.LoadLevel(1);
 }