public static void Init() { // Get an existing one or make a new one, then focus on it. ChaseCam window = (ChaseCam)EditorWindow.GetWindow <ChaseCam>(); window.Focus(); }
protected override void Awake() { base.Awake(); positionedCharacter = SceneHelpers.FindObjectOfType <BasePositionedCharacter>(true); Assert.IsNotNull(positionedCharacter); controller = SceneHelpers.FindObjectOfType <GvrTrackedController>(true); Assert.IsNotNull(controller); pointer = controller.GetComponentInChildren <CharacterPositionPointer>(true); Assert.IsNotNull(pointer); chaseCam = SceneHelpers.FindObjectOfType <ChaseCam>(true); Assert.IsNotNull(chaseCam); }