예제 #1
0
 void TurnOnPlayer()
 {
     //Bigfoot.SetActive(true);
     PlayerCamera.SetActive(true);
     IntroCamera.SetActive(false);
     playermovement_Ref.enabled = true;
     //UI.SetActive(true);
     SkipText.SetActive(false);
 }
예제 #2
0
    void Start()
    {
        skipText = GameObject.Find("Skip Text").GetComponent <SkipText>();

        frames = gameObject.GetComponentsInChildren <Animator>();

        frames[0].SetTrigger("in");

        remainingFrameTime = frameTime;
    }
예제 #3
0
        public Window(StackGame game) : base()
        {
            Game = game;

            Log.AddLogger(new DebugLogHandler());
            Log.WriteLine("Loading game settings");

            GameSettings = GameSettings.LoadFromConfigFile(Game.SaveGameFolder);

            Log.WriteLine("Initializing graphics");

            Graphics = GameSettings.CreateGraphicsDeviceManager(this);

            Window.ClientSizeChanged += OnClientSizeChanged;
            Window.AllowUserResizing  = true;
            Window.Title              = game.Title;

            SkipText     = new SkipText();
            SkipCutscene = new SkipCutscene(SetSpeed);
        }
예제 #4
0
        public void HandleSkipInputEvent(InputEvent input)
        {
            if (input.Handled)
            {
                return;
            }

            if (input.Type == InputEventType.MouseUp && StackEngine.Game.World != null)
            {
                if (!StackEngine.Game.World.Interactive)
                {
                    SkipText.Start();
                    input.Handled = true;
                }
            }

            if (input.Type == InputEventType.KeyUp && input.IsKeyPress(Keys.Escape) &&
                StackEngine.Game.World != null && !StackEngine.Game.World.Interactive)
            {
                SkipCutscene.Start();
                input.Handled = true;
            }
        }