Advertisement
baldio99codderboi

Untitled

Jul 27th, 2022
1,027
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. this.handReticle = UnityEngine.Object.Instantiate<GameObject>(this.reticle, this.reticle.transform.parent);
  2. this.handReticle.GetComponent<RectTransform>().anchoredPosition = this.reticle.GetComponent<RectTransform>().anchoredPosition;
  3. this.handReticle.GetComponent<RectTransform>().sizeDelta = new Vector2(50f, 50f);
  4. this.handReticle.GetComponent<Image>().color = Color.white;
  5. this.handReticle.GetComponent<Image>().sprite = ModExtraAssets.Get<Sprite>("CursorSprite");
  6. CursorHoverManager cursorHoverManager = new GameObject("CursorHoverManager").AddComponent<CursorHoverManager>();
  7. cursorHoverManager.cursor = this.handReticle;
  8. cursorHoverManager.distance = 15f;
  9. cursorHoverManager.player = this.playerTransform;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement