void Start() { scene4State = GameObject.Find("State"); NextSceneAction = delegate { playerTransitionCanvas.gameObject.SetActive(true); StartCoroutine(FadeInTime()); }; }
void Start() { Action = delegate { var Waypoint = GameObject.Find("Waypoint"); Waypoint.GetComponent <Waypoint>().SetPosition(GameObject.Find("DeskTrigger").transform.position); Waypoint.GetComponent <Waypoint>().Offset = new Vector3(0, 2, 0); var DeskTrigger = GameObject.Find("DeskTrigger"); DeskTrigger.GetComponent <BoxCollider>().enabled = true; }; EndQuizAction = delegate { var Waypoint = GameObject.Find("Waypoint"); Waypoint.GetComponent <Waypoint>().SetPosition(GameObject.Find("DoorTrigger").transform.position); Waypoint.GetComponent <Waypoint>().Offset = new Vector3(0.5f, 2, -0.5f); var DoorTrigger = GameObject.Find("DoorTrigger"); DoorTrigger.GetComponent <MeshCollider>().enabled = true; }; }