Example #1
0
    void SetupIngameCamera()
    {
        var defaultCameraToSpawnObject = Instantiate(ingameCameraToSpawn) as GameObject;

        cameraApplicator = defaultCameraToSpawnObject.GetComponent <LogicCameraInfoApplicator>();
        DebugUtilities.Assert(cameraApplicator != null, "Must have PlayerCamera component on this camera");
    }
Example #2
0
 void Awake()
 {
     logicCameraInfoApplicator = Camera.main.gameObject.GetComponent <LogicCameraInfoApplicator>();
 }