コード例 #1
0
        public void StartScene()
        {
            displayController.DisplaySceneDescription(Navigator.CurrentScene);

            if (Navigator.CurrentScene?.Conditions != null)
            {
                foreach (var condition in Navigator.CurrentScene.Conditions)
                {
                    if (condition.IsConditionFulfilled(this, null))
                    {
                        condition.ApplyCondition(this);
                    }
                }
            }

            if (!string.IsNullOrEmpty(Navigator.CurrentScene.NextScene))
            {
                MovePlayer(Navigator.CurrentScene.NextScene, null, string.Empty);
            }
        }