video footage link ;- Reddit - Dive into anything
And I used this joystick pack for my game:- Joystick Pack | Input Management | Unity Asset Store
script used for my player movement :-`using UnityEngine;
using System.Collections;
public class PlayerMovement : MonoBehaviour
{
public float moveSpeed = 15f;
public Joystick joystick;
// Use this for initialization
// Update is called once per frame
void Update()
{
var input = new Vector3(joystick.Horizontal, 0, joystick.Vertical);
if (input != Vector3.zero)
{
transform.forward = input;
}
var direction = new Vector3(joystick.Horizontal, 0f, joystick.Vertical);
transform.Translate(direction * moveSpeed * Time.deltaTime, Space.World);
}
}
script used for camera follow player :-
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraFollow1 : MonoBehaviour
{
public Transform player;
private Vector3 offset = new Vector3(0f,25f,0f);
void LateUpdate()
{
transform.position = player.position + offset;
}
}