1234567891011121314151617181920212223242526272829303132333435 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using DG.Tweening;
- public class ButtonManager : MonoBehaviour
- {
- public UIManager uiManager;
- public InputManager inputManager;
- public string val;
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- void Update()
- {
- if(uiManager.OnEnetered(gameObject))
- {
- transform.DOScale(Vector3.one * 2, 0.2f);
- //transform.localScale = Vector3.one * 2;
- inputManager.ChangeSelection(val);
- }
- else
- {
- transform.DOScale(Vector3.one, 0.2f);
- //transform.localScale = Vector3.one;
- }
- }
- }
|