예제 #1
0
        private void OnEnable()
        {
            M      = (SelectorEditor)target;
            script = MonoScript.FromMonoBehaviour((MonoBehaviour)target);

            Items            = serializedObject.FindProperty("Items");
            SelectorCamera   = serializedObject.FindProperty("SelectorCamera");
            WorldCamera      = serializedObject.FindProperty("WorldCamera");
            CameraOffset     = serializedObject.FindProperty("CameraOffset");
            CameraPosition   = serializedObject.FindProperty("CameraPosition");
            CameraRotation   = serializedObject.FindProperty("CameraRotation");
            SelectorType1    = serializedObject.FindProperty("SelectorType");
            ItemRendererType = serializedObject.FindProperty("ItemRendererType");
            distance         = serializedObject.FindProperty("distance");
            RadialAxis       = serializedObject.FindProperty("RadialAxis");
            UseWorld         = serializedObject.FindProperty("UseWorld");
            LookRotation     = serializedObject.FindProperty("LookRotation");
            LinearX          = serializedObject.FindProperty("LinearX");
            LinearY          = serializedObject.FindProperty("LinearY");
            LinearZ          = serializedObject.FindProperty("LinearZ");
            Grid             = serializedObject.FindProperty("Grid");
            GridWidth        = serializedObject.FindProperty("GridWidth");
            GridHeight       = serializedObject.FindProperty("GridHeight");
            RotationOffSet   = serializedObject.FindProperty("RotationOffSet");
        }
예제 #2
0
 private void OnEnable()
 {
     M      = (SelectorController)target;
     E      = M.GetComponent <SelectorEditor>();
     script = MonoScript.FromMonoBehaviour((SelectorController)target);
     //UnityEventTools.AddPersistentListener<TransformAnimation>((UnityEvent)M.OnItemSelected, M._PlayAnimationTransform);
 }
예제 #3
0
        private void OnEnable()
        {
            M      = (SelectorController)target;
            E      = M.GetComponent <SelectorEditor>();
            script = MonoScript.FromMonoBehaviour((MonoBehaviour)target);

            AnimateSelection   = serializedObject.FindProperty("AnimateSelection");
            OnIsChangingItem   = serializedObject.FindProperty("OnIsChangingItem");
            OnItemFocused      = serializedObject.FindProperty("OnItemFocused");
            OnClickOnItem      = serializedObject.FindProperty("OnClickOnItem");
            EditorShowEvents   = serializedObject.FindProperty("EditorShowEvents");
            Threshold          = serializedObject.FindProperty("Threshold");
            ClickToFocus       = serializedObject.FindProperty("ClickToFocus");
            ChangeOnEmptySpace = serializedObject.FindProperty("ChangeOnEmptySpace");
            EditorAdvanced     = serializedObject.FindProperty("EditorAdvanced");
            EditorInput        = serializedObject.FindProperty("EditorInput");
            frame_Multiplier   = serializedObject.FindProperty("frame_Multiplier");
            frame_Camera       = serializedObject.FindProperty("frame_Camera");
            LockMaterial       = serializedObject.FindProperty("LockMaterial");
            ScaleIdleAnim      = serializedObject.FindProperty("ScaleIdleAnim");
            TurnTableVector    = serializedObject.FindProperty("TurnTableVector");
            ItemRotationSpeed  = serializedObject.FindProperty("ItemRotationSpeed");
            MoveIdleAnim       = serializedObject.FindProperty("MoveIdleAnim");
            ScaleIdle          = serializedObject.FindProperty("ScaleIdle");
            RotateIdle         = serializedObject.FindProperty("RotateIdle");
            MoveIdle           = serializedObject.FindProperty("MoveIdle");
            EditorIdleAnims    = serializedObject.FindProperty("EditorIdleAnims");
            Hover            = serializedObject.FindProperty("Hover");
            UseSelectionZone = serializedObject.FindProperty("UseSelectionZone");
            inertiaCurve     = serializedObject.FindProperty("inertiaCurve");
            minInertiaSpeed  = serializedObject.FindProperty("minInertiaSpeed");
            inertiaTime      = serializedObject.FindProperty("inertiaTime");
            inertia          = serializedObject.FindProperty("inertia");
            DragSpeed        = serializedObject.FindProperty("DragSpeed");
            dragHorizontal   = serializedObject.FindProperty("dragHorizontal");
            SelectionTime    = serializedObject.FindProperty("SelectionTime");
            SelectionCurve   = serializedObject.FindProperty("SelectionCurve");
            SoloSelection    = serializedObject.FindProperty("SoloSelection");
            RestoreTime      = serializedObject.FindProperty("RestoreTime");
        }
 private void OnEnable()
 {
     M      = (SelectorEditor)target;
     script = MonoScript.FromMonoBehaviour((SelectorEditor)target);
 }