Beispiel #1
0
    public void Transport(TransportPoint point)
    {
        currentPoint = point;

        if (blackCanvas != null)
        {
            StartCoroutine(CommenceTransport(point.transform.position + point.transportOffset, point.transform.rotation));
        }
    }
Beispiel #2
0
 void OnPlayerTeleported(TransportPoint point)
 {
     SetGazedAt(false);
     if (point == this)
     {
         gameObject.SetActive(false);
     }
     else
     {
         gameObject.SetActive(true);
     }
 }
Beispiel #3
0
    public void Transport(TransportPoint point)
    {
        currentPoint = point;

        //switch (currentPoint.tag)
        //{
        //    case "Untagged":
        //        Debug.LogWarning("Found tag: Untagged");
        //        break;
        //    case "Entrance":
        //        Debug.LogWarning("Found tag: Entrance");
        //        RenderSettings.skybox = entrance;
        //        break;
        //    case "FrontGarden":
        //        Debug.LogWarning("Found tag: FrontGarden");
        //        RenderSettings.skybox = frontGarden;
        //        break;
        //    case "GardenHouse":
        //        Debug.LogWarning("Found tag: GardenHouse");
        //        RenderSettings.skybox = gardenHouse;
        //        break;
        //    case "MidGarden":
        //        Debug.LogWarning("Found tag: MidGarden");
        //        RenderSettings.skybox = midGarden;
        //        break;
        //    default:
        //        Debug.LogWarning("default case hit");
        //        break;
        //}



        if (blackCanvas != null)
        {
            StartCoroutine(CommenceTransport(point.transform.position + point.transportOffset, point.transform.rotation));
        }
    }
 void OnPlayerTeleported(TransportPoint point)
 {
     SetGazedAt(false);
     gameObject.SetActive(point != this);
 }