using System.Collections.Generic; using UnityEngine; using SanAndreasUnity.Behaviours; using SanAndreasUnity.Utilities; using UnityEngine.UI; namespace SanAndreasUnity.UI { public class TouchInput : MonoBehaviour { public static TouchInput Instance { get; private set; } Canvas canvas; GameObject pedMovementInputGo; Button walkButton, sprintButton, jumpButton, crouchButton, enterButton, aimButton, fireButton, flyButton; ArrowsMovementButton movementButton; void Awake () { Instance = this; // setup references canvas = this.transform.GetChild(0).GetComponent(); pedMovementInputGo = canvas.transform.GetChild(0).gameObject; Transform parent = pedMovementInputGo.transform; walkButton = parent.Find("WalkButton").GetComponent