Hello, Im new to Java and have been stuck on a problem. Currently I spawn a square in a Network and can move it around. Now i am trying to add a camera to follow the cube when it spawns. Any help would be appreciated!
var playerPrefab:GameObject;
var spawnObject:Transform;
function spawnPlayer(){
Network.Instantiate(playerPrefab, spawnObject.position, Quaternion.identity, 0)
}
function OnServerInitialized(){
Debug.Log("Server Initialized");
spawnPlayer();
}