// ------------------------------------------------------------------------------- // OnDestroy // ------------------------------------------------------------------------------- public void OnDestroy() { AnchorManager.UnRegisterPortalAnchor(name); }
// ------------------------------------------------------------------------------- // OnDestroy // ------------------------------------------------------------------------------- public void OnDestroy() { AnchorManager.UnRegisterStartAnchor(this.gameObject); }
// ------------------------------------------------------------------------------- // Awake // ------------------------------------------------------------------------------- public void Awake() { AnchorManager.RegisterPortalAnchor(name, transform.position); }
// ------------------------------------------------------------------------------- // Awake // ------------------------------------------------------------------------------- public void Awake() { AnchorManager.RegisterStartAnchor(this.gameObject); }