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