Example #1
0
        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;
        }
Example #2
0
 public void Destroy()
 {
     Object.Destroy(PlayerTransform.gameObject);
     PlayerTransform      = null;
     PlayerModelTransform = null;
     Movement             = null;
     Animator             = null;
     Effects = null;
     PlayerInstance.Free();
     PlayerInstance = null;
 }