private void SpawnPlayer() { player1 = Instantiate(player1, new Vector3(-19f, 0f, 0f), Quaternion.identity) as GameObject; cam.SetTarget(player1.transform); player1.name = "Player_sprite(Clone)"; }
private void SpawnPlayer() { player1 = Instantiate(Resources.Load("Prefabs/Species/animal" + species1), new Vector3(0f, 0f, 0f), Quaternion.identity) as GameObject; cam.SetTarget(player1.transform); player1.name = Constants.PLAYER1_NAME; GameObject.Find("GameLogic").GetComponent <Running>().player1 = this.player1; }