Search Unity

How Do I code a script similar to checking discrepancy in Papers, Please?

Discussion in 'Scripting' started by Steelshot, Feb 28, 2016.

  1. Steelshot

    Steelshot

    Joined:
    Feb 24, 2015
    Posts:
    102
    Hi,

    I am trying to code a script in C# that will check
    if one object is true or false when ever
    I pressed a in-game object.

    For example,
    if i press a button to check if the people are hydrated by clicking on
    the button then clicking on the people
    and finally telling me if they're hydrated or not.
    Button.PNG

    (It will also help if you helped me create a simple logical randomizer for the levels :) )
     
  2. ShokeR0

    ShokeR0

    Joined:
    Feb 24, 2016
    Posts:
    112
    Use OnMouseDown