Ejemplo n.º 1
0
 public void LeaveHome()
 {
     if (toPlatform == null)
     {
         mapEvents.Teleport(worldMaps, toMap);
     }
     else
     {
         mapEvents.Teleport(worldMaps, toMap, toPlatform);
     }
     GameManager.CurrentArea = GlobalArea.Map;
     canvasMain.Resume();
 }
Ejemplo n.º 2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag(PlayerMain.GetPlayer.tag))
     {
         Debug.Log(toWorld + "  " + toMap.name);
         if (toPlatform == null)
         {
             mapEvents.Teleport(toWorld, toMap);
         }
         else
         {
             mapEvents.Teleport(toWorld, toMap, toPlatform);
         }
     }
 }
Ejemplo n.º 3
0
    public void EnterHome()
    {
        GameManager.CurState    = GameState.Free;
        GameManager.CurrentArea = GlobalArea.Home;

        ToggleBigPanel(new List <Transform>()
        {
            Home.transform, Gameui.transform
        });
        Home.transform.SleepChildren(Home.transform.GetChild(0));
        if (homeLandPlatform == null)
        {
            mapEvents.Teleport(WorldMaps.Home, homeMapHandler.GetActiveLawn);
        }
        else
        {
            mapEvents.Teleport(WorldMaps.Home, homeMapHandler.GetActiveLawn, homeLandPlatform);
        }
    }
Ejemplo n.º 4
0
 public void TelePortTo()
 {
     CanTelePortTo.TeleportTo();
     mapEvents.Teleport(World, Map, landPlatform);
 }