Exemplo n.º 1
0
 public override void Action()
 {
     //Debug.Log("Every time you get called");
     _ui_objectiveText.UpdateText(text);
     if (popup)
     {
         PopUp();
     }
 }
Exemplo n.º 2
0
 public void UpdateObjectiveText(string text = "", bool popup = true)
 {
     _ui_objectiveText.UpdateText(text);
     if (popup)
     {
         _ui_objectiveText.PopUp();
     }
 }
Exemplo n.º 3
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject == _playerRef)
     {
         _ui_objectiveText.UpdateText(_newText);
         if (_popUp)
         {
             _ui_objectiveText.PopUp();
         }
         if (_destroyGameObjectAfterTouch)
         {
             Destroy(gameObject);
         }
     }
 }