public void RefindPoint() { LevelEntryway entryway = FindObjectOfType <LevelEntryway>(); if (entryway != null) { transform.position = entryway.transform.position; } }
public void RefindPoint() { LevelEntryway entryway = FindObjectOfType <LevelEntryway>(); if (entryway != null) { transform.position = new Vector3(entryway.transform.position.x, entryway.transform.position.y, transform.position.z); } }