コード例 #1
0
 void Start()
 {
     scene4State     = GameObject.Find("State");
     NextSceneAction = delegate
     {
         playerTransitionCanvas.gameObject.SetActive(true);
         StartCoroutine(FadeInTime());
     };
 }
コード例 #2
0
    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;
        };
    }