// Methods //-------- /// <summary> /// Use this for initialization /// </summary> void Start() { // Get a reference to the d-pad dpad = gameObject.GetComponent<DynamicDpad>(); controller = gameObject.GetComponent<CharacterController>(); PlayAnimation("idle"); }
private bool isMoving = false; // Indicates if the character is moving // Methods //-------- /// <summary> /// Use this for initialization /// </summary> void Start() { // Get a reference to the d-pad dpad = gameObject.GetComponent <DynamicDpad>(); controller = gameObject.GetComponent <CharacterController>(); PlayAnimation("idle"); }
void Awake() { // Get a reference to the d-pad dpad = gameObject.GetComponent<DynamicDpad>(); }
private DynamicDpad dpad; // The dynamic d-pad void Awake() { // Get a reference to the d-pad dpad = gameObject.GetComponent <DynamicDpad>(); }