Search Unity

Question Event Log

Discussion in 'Scripting' started by unity_VA48GdKNWHHEYQ, Sep 16, 2020.

  1. unity_VA48GdKNWHHEYQ

    unity_VA48GdKNWHHEYQ

    Joined:
    Sep 13, 2020
    Posts:
    2
    What code would you use for a event like when you press a button and it says "you find nothing" or "You meet Ted"
     
  2. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    Code (CSharp):
    1. void Update()
    2. {
    3.   if (Input.GetKeyDown(KeyCode.A))
    4.   {
    5.     Debug.Log("you find nothing");
    6.   }
    7. }
     
    Kurt-Dekker likes this.