public void Init() { //var gameStage = CoreEntry.GetGameStage(); GameObject obj = new GameObject("InputRoot"); inputJoystick = obj.AddComponent <InputJoystick>(); SetInputModel(InputModel.JoystickModel); OnStopProcessInput(""); InitEventListener(); }
void Awake() { instance = this; zoomInitial = transform.position.y; joystick = GameObject.Find("Joystick").GetComponent <InputJoystick>(); }