public void ExitUi() { PlayerPlatformerController1._instance.Con_Player(true); btn.GetComponent <Button>().enabled = false; StealInsideImg.GetComponent <Image>().enabled = false; Exit_btn.SetActive(false); }
// Use this for initialization void Start() { btn = GameObject.Find("StealInSide/Button"); Exit_btn = GameObject.Find("StealInSide/Exit"); Knief = GameObject.Find("StealInSide/Knife"); KniefBtn = GameObject.Find("StealInSide/Knife/KnifeBtn"); btn.GetComponent <Button>().enabled = false; Exit_btn.SetActive(false); KniefBtn.GetComponent <Button>().enabled = false; StealInsideImg.GetComponent <Image>().enabled = false; Knief.GetComponent <Image>().enabled = false; }