public static SgtBeltGroup Create(SgtBelt belt) { var group = SgtComponentPool<SgtBeltGroup>.Pop("Group", belt.transform); group.Belt = belt; return group; }
public static SgtBeltGroup Create(SgtBelt belt) { var group = SgtComponentPool <SgtBeltGroup> .Pop("Group", belt.gameObject.layer, belt.transform); group.Belt = belt; return(group); }
protected virtual void Start() { if (startCalled == false) { startCalled = true; if (Belt == null) { Belt = GetComponent <SgtBelt>(); } CheckUpdateCalls(); } }