using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Collections.Generic;
using UnityEngine;
public class ButtonClass : MonoBehaviour
{
{
// ボタン用 [SerializeField] Vector3 DOWN_SCALE = new Vector3(1,1,1); [SerializeField] float DONW_LONG_TIME,down_timer; bool down;
public enum STATUS{IDLE,DOWN_SHORT,DOWN_LONG};
public STATUS status;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
/* ボタン長押し時の処理 */
if (down == true)
{
this.transform.localScale = DOWN_SCALE;
down_timer += Time.deltaTime;
}
else
{
this.transform.localScale = new Vector3(1, 1, 1);
if (down_timer > 0)
{
if(DONW_LONG_TIME <= down_timer)
{
}
else
{
}
}
down_timer = 0;
}
}
void Button()
{
}
public void PointerDown()
{
down = true;
}
public void PointerUP()
{
down = false;
}
}
