private void TryOpenDialog()
 {
     if (_moveTransform[0].X >= this.Width - 150)
     {
         OpenDialog?.Invoke(_scene);
     }
 }
        private void CheckInteraction()
        {
            foreach (CharacterBody rigidbody in _currentCharacters)
            {
                if (rigidbody == _mainCharacter)
                {
                    continue;
                }
                if (!rigidbody.HasCollisionWith(_mainCharacter))
                {
                    continue;
                }

                Scene dialogScene = ScenesManager.GetScene(_scene.ID);
                dialogScene.Dialog = rigidbody.SpawnDialog;
                OpenDialog?.Invoke(dialogScene);
                CloseEvent();
            }
        }
Exemplo n.º 3
0
 public void RaiseOpenDialog <T>(T arg)
 {
     OpenDialog?.Invoke(this, arg);
 }
Exemplo n.º 4
0
 protected virtual void OnOpenDialog(OpenDialogEventArgs e)
 {
     OpenDialog?.Invoke(this, e);
 }
Exemplo n.º 5
0
 private void btnDialog_Click(object sender, EventArgs e)
 {
     OpenDialog?.Invoke(sender, e);
 }