using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DoorColor : MonoBehaviour { public void Change() { print(this.name); Color C=this.gameObject.transform.Find("Background").GetComponent().color; Get.o1("ImageDoor").GetComponent().color=C; } }