public void TeleportPlayer(Placement place) { if (Player.instance != null) { Vector2 spawnPoint = place.GetCenterPosition(); TeleportPlayer(spawnPoint); } }
public void InstatiatePlayer(Placement place) { Vector2 spawnPoint = place.GetCenterPosition(); if (level == 1) { GameObject t = Instantiate(tutorial, spawnPoint, Quaternion.identity); t.transform.parent = place.transform; } Player.instance.transform.position = spawnPoint; Camera.main.transform.position = Player.instance.transform.position; place.TurnOnLight(); }