// Start is called before the first frame update void Start() { rectTransform = GetComponent <RectTransform>(); // Find the owner EditorProgram Transform ownerTransform = transform.parent; while ((owner = ownerTransform.GetComponent <EditorProgram>()) == null) { ownerTransform = ownerTransform.parent; } clueHud = GameObject.Find("ClueHUD").GetComponent <ClueHUD>(); // Find original colour Image image = GetComponent <Image>(); if (image) { color = new float[4] { image.color.r, image.color.g, image.color.b, image.color.a }; } }