Example #1
0
    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;
    }
Example #2
0
 static DropInstruction()
 {
     Singleton = new DropInstruction();
 }