示例#1
0
 public override void OnInteract(Character character)
 {
     if (BinBox.IsVisible())
     {
         BinBox.Hide();
         character.Behavior.setFrozen(false, true);
     }
     else
     {
         //myText = ("Poubelle green");
         BinBox.Show(myText);
         character.Behavior.setFrozen(true, true);
     }
 }
示例#2
0
 void Awake()
 {
     Instance    = this;
     dialogFrame = GetComponent <Image>();
     dialogText  = GetComponentInChildren <Text>();
 }