using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LightDigital.UI;
using UnityEngine.UI;
using DG.Tweening;
using UnityEngine.EventSystems;
using LightDigital.Core;
public class C0001 : QuestionBase
{
enum Dir {
Dir_None,
Dir_Left,
Dir_Right,
Dir_Over
}
public List<GameObject> listBox = new List<GameObject>();
Queue<GameObject> queBox = new Queue<GameObject>();
Button btnMoney;
Image imgPersonStatic;
Image imgPersonLeft;
Image imgPersonRight;
int fPersonLeftStartX = 0;
int fPersonLeftEndX = -750;
int fPersonRightStartX = -750;
int fPersonRightEndX = 0;
float fSpeed = 1;//速度
float fAddSpeed = 5f;//每次增加的速度
Dir eDir = Dir.Dir_None;//当前方向
void Awake()
{
btnMoney = UIHelper.GetButton(gameObject, "btnMoney");
imgPers
Unity功能 实现左右加速度
最新推荐文章于 2023-11-07 19:08:36 发布