/// <summary> /// Invoke map system methods /// </summary> void Update() { if (Input.GetKeyDown(KeyCode.M)) { itsMapSystem.SetFullscreen(!itsMapSystem.GetFullscreen()); } else if (Input.GetKeyDown(KeyCode.Alpha1)) { itsMapSystem.ZoomIn(); } else if (Input.GetKeyDown(KeyCode.Alpha2)) { itsMapSystem.ZoomOut(); } else if (Input.GetKeyDown(KeyCode.Alpha3)) { itsMapSystem.ZoomMax(); } else if (Input.GetKeyDown(KeyCode.Alpha4)) { itsMapSystem.ZoomMin(); } else if (Input.GetKeyDown(KeyCode.H)) //make sure to assign a your camera in the itsViewPort Section. Else this will not work { itsMapSystem.SetViewportEnabled(!itsMapSystem.GetViewportEnabled()); } else if (Input.GetKeyDown(KeyCode.Z)) { itsMapSystem.SetModeStatic(!itsMapSystem.GetModeStatic()); } }
public override void OnEnter() { if (MapSystem == null) { MapSystem = KGFAccessor.GetObject <KGFMapSystem>(); } if (MapSystem != null) { MapSystem.ZoomOut(); } else { LogError("Could not find mapsystem object in scene"); } Finish(); }