public void Destroy() { Object.Destroy(PlayerTransform.gameObject); PlayerTransform = null; PlayerModelTransform = null; Movement = null; Animator = null; Effects = null; PlayerInstance.Free(); PlayerInstance = null; if (StarmapMarker != null) { Object.Destroy(StarmapMarker); } if (StarmapNameText != null) { Object.Destroy(StarmapNameText); } if (InGameNameText != null) { Object.Destroy(InGameNameText); } StarmapMarker = StarmapNameText = null; InGameNameText = null; }
public void Destroy() { Object.Destroy(PlayerTransform.gameObject); PlayerTransform = null; PlayerModelTransform = null; Movement = null; Animator = null; Effects = null; PlayerInstance.Free(); PlayerInstance = null; }