Files
crtr/Assets/Cryville/Crtr/Anchor.cs

17 lines
554 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace Cryville.Crtr {
public class Anchor {
public int Name { get; private set; }
public Transform Transform { get; private set; }
public SkinContext SkinContext { get; private set; }
public Dictionary<int, PropSrc> PropSrcs { get; private set; }
public Anchor(int name, Transform transform, bool hasProps = false) {
Name = name;
Transform = transform;
if (hasProps) PropSrcs = new Dictionary<int, PropSrc>();
SkinContext = new SkinContext(transform, PropSrcs);
}
}
}