TempCrossfair¶
A method that renders a crosshair's ring that periodically spins over an enemy party member's physical position + (0.0, 1.0, 0.0) or its world CenterPos and returns its transform.
private Transform TempCrosshair(MainManager.BattleData target, bool groundpos)
Parameters¶
target: The enemy party member to render the crosshair ongroundpos: If it's false, it will use the world CenterPos to determine where to render the crosshair and if it's true, it will use its physical position + (0.0, 1.0, 0.0) instead
Procedure¶
- A new sprite object is created with name
tempspritechiled to thebattlemapat the position determined bygroundposusing the spriteguisprites[93](a crosshair's ring) on layer 15 (3DUI) with thespritedefaultunitymaterial - A SpinAround is added to the sprite object with an
itselfof (0.0, 0.0, 7.5) - The transform of the sprite object is returned