Exemple #1
0
    protected virtual void OnDrawGizmosSelected()
    {
        var position = transform.parent != null ? transform.parent.transform.position : Vector3.zero;
        var rotation = transform.parent != null ? transform.parent.transform.rotation : Quaternion.identity;

        SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawDisc(position, rotation, new Vector2((1.0f - orbitOblateness) * orbitDistance, orbitDistance));
    }
Exemple #2
0
 protected virtual void OnDrawGizmosSelected()
 {
     if (debrisCentre != null)
     {
         if (debris2D == true)
         {
             SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawDisc(debrisCentre.transform.position, transform.rotation, DebrisContainerInnerRadius, DebrisContainerOuterRadius);
         }
         else
         {
             SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawSphere(debrisCentre.transform.position, DebrisContainerInnerRadius, DebrisContainerOuterRadius);
         }
     }
 }
 protected virtual void OnDrawGizmosSelected()
 {
     SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawDisc(transform.position, transform.rotation, RingRadiusInner);
     SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawDisc(transform.position, transform.rotation, RingRadiusOuter);
 }