void Awake() { if (anchor == null) { anchor = HComponent.Create<FloatingAnchor>(gameObject.name + " floatingAnchor"); anchor.transform.position = transform.position; anchor.transform.rotation = transform.rotation; anchor.transform.parent = transform.parent; anchor.data = data; } }
void Awake() { if (anchor == null) { anchor = HComponent.Create <FloatingAnchor>(gameObject.name + " floatingAnchor"); anchor.transform.position = transform.position; anchor.transform.rotation = transform.rotation; anchor.transform.parent = transform.parent; anchor.data = data; } }