Пример #1
0
    public void RefindPoint()
    {
        LevelEntryway entryway = FindObjectOfType <LevelEntryway>();

        if (entryway != null)
        {
            transform.position = entryway.transform.position;
        }
    }
Пример #2
0
    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);
        }
    }