Пример #1
0
        public override void Update()
        {
            base.Update();

            if (!Locked)
            {
                PlayerInteractor playerInteractor = Scene.Tracker.GetComponent <PlayerInteractor>();
                if (playerInteractor.Check(this))
                {
                    Engine.Scene = NextScene;
                }
            }
        }
Пример #2
0
        public override void Update()
        {
            base.Update();
            if (Scene != null && !Activated)
            {
                PlayerInteractor playerInteractor = Scene.Tracker.GetComponent <PlayerInteractor>();
                if (playerInteractor != null)
                {
                    if (playerInteractor.Check(Entity))
                    {
                        StartDialogue();
                    }
                }
            }

            if (Activated)
            {
                dialogueCoroutine.Update();
            }
        }