private void Awake() { rect = GetComponent <RectTransform>(); group = GetComponent <CanvasGroup>(); parent = transform.parent as RectTransform; drop = GameObject.FindGameObjectWithTag("InstructionList").GetComponent <DropInstruction>(); canvas = GameObject.FindGameObjectWithTag("UI").GetComponent <Canvas>(); initialPosition = rect.anchoredPosition; }
static DropInstruction() { Singleton = new DropInstruction(); }