예제 #1
0
        private void RaiseWindow()
        {
            rockGO.SetActive(true);
            woodGO.SetActive(true);

            previousWindowRaised = MouseInputHandler.Instance.currentSelected;
            transform.position   = previousWindowRaised.transform.position;
            upgradePanel.SetActive(true);

            raiseAnimationTween?.Kill(true);
            upgradePanel.transform.localScale = Vector3.zero;
            raiseAnimationTween = upgradePanel.transform.DOScale(Vector3.one, openDuration).SetEase(openEase);
        }
예제 #2
0
 private void Start()
 {
     sr         = GetComponent <SpriteRenderer>();
     selectable = GetComponent <Selectable>();
     status    |= Status.Awake;
 }
예제 #3
0
 private void ClosePanel()
 {
     previousWindowRaised = null;
     raiseAnimationTween?.Kill(true);
     raiseAnimationTween = upgradePanel.transform.DOScale(Vector3.zero, closeDuration).SetEase(closeEase).OnComplete(() => MouseInputHandler.Instance.Deselect());
 }
예제 #4
0
 private void Start()
 {
     currentSelected = null;
 }