mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
add null check for FollowMinimapItem behavior
This commit is contained in:
committed by
alexiscatnip
parent
a146c83d00
commit
88dad8c7bb
@@ -12,6 +12,9 @@ public class FollowMinimapItem : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (target == null)
|
||||
return;
|
||||
|
||||
this.transform.position = new Vector3(
|
||||
target.transform.position.x,
|
||||
target.transform.position.y,
|
||||
|
||||
Reference in New Issue
Block a user