public static ActionDrawer Create(Transform parent, List <PerformerAction> actions) { GameObject go = new GameObject("ActionDrawer", typeof(ActionDrawer)); go.transform.SetParent(parent); ActionDrawer drawer = go.GetComponent <ActionDrawer> (); drawer.Init(actions); return(drawer); }
public void SetDrawer(ActionDrawer drawer) { this.drawer = drawer; }