示例#1
0
 public ScriptableNode(int id, ScriptableNodeType type, Color color, Color textColor, string pattern, PivotPointAnchor pivotAnchor, Vector2Int customAnchor, PivotDirection pivotDirection)
 {
     _id             = id;
     _type           = type;
     _color          = color;
     _textColor      = textColor;
     _pattern        = pattern;
     _pivotAnchor    = pivotAnchor;
     _customAnchor   = customAnchor;
     _pivotDirection = pivotDirection;
 }
示例#2
0
 public ScriptableNode(int id)
 {
     _id             = id;
     _color          = new Color(Random.Range(0f, 1f), Random.Range(0f, 1f), Random.Range(0f, 1f));
     _textColor      = Color.white;
     _type           = default;
     _pattern        = default;
     _pivotAnchor    = default;
     _customAnchor   = default;
     _pivotDirection = default;
 }
示例#3
0
 internal ScriptableNode SetPivotDirection(PivotDirection pivotDirection) => new ScriptableNode(_id, _type, _color, _textColor, _pattern, _pivotAnchor, _customAnchor, pivotDirection);