private bool CameraControllerInit() { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) bool result = false; try { Console.WriteLine("Install Camera Control"); UltimateOrbitCamera cameraControl = GameMain.Instance.MainCamera.gameObject.GetComponent <UltimateOrbitCamera>(); if (!(cameraControl == null)) { cameraControllerFunc = delegate(bool enable) { try { cameraControl.enabled = enable; } catch { } }; result = true; return(result); } Console.WriteLine("camera contoller not found"); return(false); } catch { Console.WriteLine("exception : camera contoller setting failed"); return(result); } }
public void OnEnable() { myTarget = (UltimateOrbitCamera)target; m_object = new SerializedObject(target); }
void Awake() { mOrbitCamera = GetComponent <UltimateOrbitCamera>(); // mSky = GetComponent<Skybox>(); }