Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.handReticle = UnityEngine.Object.Instantiate<GameObject>(this.reticle, this.reticle.transform.parent);
- this.handReticle.GetComponent<RectTransform>().anchoredPosition = this.reticle.GetComponent<RectTransform>().anchoredPosition;
- this.handReticle.GetComponent<RectTransform>().sizeDelta = new Vector2(50f, 50f);
- this.handReticle.GetComponent<Image>().color = Color.white;
- this.handReticle.GetComponent<Image>().sprite = ModExtraAssets.Get<Sprite>("CursorSprite");
- CursorHoverManager cursorHoverManager = new GameObject("CursorHoverManager").AddComponent<CursorHoverManager>();
- cursorHoverManager.cursor = this.handReticle;
- cursorHoverManager.distance = 15f;
- cursorHoverManager.player = this.playerTransform;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement