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