Inheritance: MonoBehaviour
コード例 #1
0
        void RadialTab()
        {
            _plane = (Plane)EditorGUILayout.EnumPopup("Plane", _plane);
            _space = (Space)EditorGUILayout.EnumPopup("Space", _space);

            _totalAngle     = EditorGUILayout.FloatField("Total Angle", _totalAngle);
            _inclusiveAngle = EditorGUILayout.Toggle("Inclusive Angle", _inclusiveAngle);

            _radius = EditorGUILayout.FloatField("Radius", _radius);

            _elementRotation = (ElementRotation)EditorGUILayout.EnumPopup("Rotate Elements", _elementRotation);

            EditorGUI.BeginDisabledGroup(_elementRotation == ElementRotation.DontRotate);
            EditorGUIUtility.wideMode = true;
            _rotationOffset           = EditorGUILayout.Vector3Field("Rotation Offset", _rotationOffset);
            EditorGUIUtility.wideMode = false;
            EditorGUI.EndDisabledGroup();

            LayoutButton(RadialLayout);
        }
コード例 #2
0
 public void Link(ElementRotation rot)
 {
     _linkedRotation = rot;
 }
コード例 #3
0
 public TreeNodeRotation(ElementRotation rot) : base("Rotation")
 {
     Link(rot);
     Configurate();
 }
コード例 #4
0
 public LevelElementData(Vector2Int pos, ElementRotation rotation)
 {
     this.pos      = pos;
     this.rotation = rotation;
 }
コード例 #5
0
	public DoorData(Vector2Int pos, ElementRotation rotation) : base(pos, new Vector2Int(2, 1), rotation) {
	}
コード例 #6
0
 public RectLevelElementData(Vector2Int pos, Vector2Int size, ElementRotation rotation) : base(pos, rotation)
 {
     this.size = size;
 }
 public SingleTileLevelElementData(Vector2Int pos, ElementRotation rotation) : base(pos, rotation)
 {
 }