Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private void Start()
 {
     sr         = GetComponent <SpriteRenderer>();
     selectable = GetComponent <Selectable>();
     status    |= Status.Awake;
 }
Exemplo n.º 3
0
 private void ClosePanel()
 {
     previousWindowRaised = null;
     raiseAnimationTween?.Kill(true);
     raiseAnimationTween = upgradePanel.transform.DOScale(Vector3.zero, closeDuration).SetEase(closeEase).OnComplete(() => MouseInputHandler.Instance.Deselect());
 }
Exemplo n.º 4
0
 private void Start()
 {
     currentSelected = null;
 }