예제 #1
0
파일: GameManager.cs 프로젝트: robinxb/Test
 void Start()
 {
     scMgr = new SceneManager ();
     scMgr.AddLevel ();
     player = Instantiate(Resources.Load ("prefabs/player", typeof(Player))) as Player;
     cam = Camera.main;
     cam.GetComponent<FollowCamera> ().playerMarker = player.transform;
     player.transform.position = scMgr.RandomAvailableLocation ();
 }