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); } }
void Awake() { Instance = this; dialogFrame = GetComponent <Image>(); dialogText = GetComponentInChildren <Text>(); }