コード例 #1
0
        private void Awake()
        {
            Instance = this;

            m_CameraTransformReference = cameraReference.transform;
            m_IsOrthographicCamera     = cameraReference.orthographic;

            EnableAndDisableThisMonoBehaviour(false);
        }
コード例 #2
0
        private void OnEnable()
        {
            Reference = (FaithCameraController)target;

            if (Reference != null)
            {
                cameraReference = serializedObject.FindProperty("cameraReference");
                cameraContainerTransformReference = serializedObject.FindProperty("cameraContainerTransformReference");
            }
        }