示例#1
0
    public void OnGameStateChanged(CurrentGameScreen screen)
    {
        List <GameObject> toHide = screen == CurrentGameScreen.Custle ? this.MapViewObjects : this.CastleViewObjects;
        List <GameObject> toShow = screen == CurrentGameScreen.Custle ? this.CastleViewObjects : this.MapViewObjects;

        this.HodeObjects(toHide);
        this.ShowObjects(toShow);
    }
示例#2
0
    public void SetState(CurrentGameScreen screen)
    {
        this.Screen = screen;
        this.UIManager.OnGameStateChanged(screen);

        Camera.main.transform.position = cachedCamPosition;

        Object.FindObjectOfType <CameraControllerScript>().DoMovement = screen == CurrentGameScreen.Map;
    }