예제 #1
0
        // Use this for initialization
        void Start()
        {
            diamondNum = UserData.Instance.DiamondNumber;
            SetButtonUnlockEvent.AddListenerWithEditor(UnlockButton.SetUnlockEnable);
            SetButtonlockEvent.AddListenerWithEditor(UnlockButton.SetUnlockDisable);
            DiamondChangeEvent.AddListenerWithEditor(DiamondViewText.UpdateDiamond);

            DiamondViewText.Init(diamondNum);
        }
예제 #2
0
        // Use this for initialization
        void Start()
        {
            int buttonLength = Buttons.Length;

            distanceAwayFromCenter = new float[buttonLength];
            buttonDistance         = (int)Mathf.Abs(Buttons [0].GetComponent <RectTransform> ().anchoredPosition.x - Buttons [1].GetComponent <RectTransform> ().anchoredPosition.x);

            foreach (BottleSelectView bottleView in BottleViews)
            {
                SetBottleUnSelectedEvent.AddListenerWithEditor(bottleView.UnSelect);
            }
        }