コード例 #1
0
    // Called before first frame. Prepares the displays and loads cameras.
    private void Awake()
    {
        // Things here should only ever happen once.
        if (instance != null)
        {
            GameObject.Destroy(instance.gameObject);
        }

        instance      = this;
        CAVEViewpoint = GetComponentInChildren <CameraViewpoint>();
    }
コード例 #2
0
 public void SetupGameManagers()
 {
     if (this != null && user != null)
     {
         platform             = user.GetComponentInChildren <CatalystPlatform>();
         cameraRig            = user.GetComponentInChildren <CAVECameraRig>();
         monitor              = user.GetComponentInChildren <PlatformMonitor>();
         photoController      = GetComponentInChildren <PhotoController>();
         inputGuide           = user.GetComponentInChildren <InputGuideController>();
         platform.gameManager = this;
     }
 }