- Home /
Question by
nasun4o · Jan 24, 2016 at 04:06 PM ·
androidtouchscreencamerasswitch cameras
Camera Switched for Smartphone
Hello guys im doing my game for Adroid and i want to create 3 or more Cameras and to be able to switch them with some icon on the screen ,I'm using C# and i got just this simple camera using UnityEngine;
public class CameraController : MonoBehaviour { public GameObject Player;
private Vector3 offset;
public void Start()
{
this.offset = this.transform.position - this.Player.transform.position;
}
public void LateUpdate()
{
this.transform.position = this.Player.transform.position + this.offset;
}
}
It's from tutorial
Comment
Your answer
Follow this Question
Related Questions
How to make an android joystick like Arcane Legends 0 Answers
Problem with touch button (when moved) 2 Answers
How can I tell if the device I am on supports touch? 4 Answers
Move 2 objects at the same time 0 Answers
I am making android fps and my raycast shooting button don't work. What I should do? 1 Answer