下面附上所需要的代码模块
在这using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System;
public enum E_JoystickType
{
Normal,
CanChangePos,
CanMove
}
public class JoystickPanel : BasePanel
{
private Image imgTouchRect;
private Image imgBk;
private Image imgControl;
public E_JoystickType type = E_JoystickType.Normal;
public float maxL = 180;
// Start is called before the first frame update
void Start()
{
imgBk = GetControl<Image>("imgBK");
imgControl = GetControl<Image>("imgControl");
imgTouchRect = GetControl