Пример #1
0
 /// <summary>Initialisation for screen space labels.</summary>
 public void Init(
     float x,
     float y,
     ref Color color,
     LabelPivot pivot,
     LabelAlignment alignment,
     IMDrawGUICommandFlag flags,
     string label,
     float duration)
 {
     m_Text.text  = label;
     m_Position.x = x;
     m_Position.y = y;
     m_Color      = color;
     m_Flags      = flags;
     SetAlignment(alignment);
     SetPivot(pivot);
     m_T = duration;
 }
Пример #2
0
 /// <summary>Initialisation for world space labels.</summary>
 public void Init(
     Vector3 position,
     ref Color color,
     LabelPivot pivot,
     LabelAlignment alignment,
     IMDrawGUICommandFlag flags,
     string label,
     float duration)
 {
     m_Text.text = label;
     m_Position  = position;
     m_OffsetX   = 0f;
     m_OffsetY   = 0f;
     m_Color     = color;
     m_BaseAlpha = color.a;
     m_Flags     = flags;
     SetAlignment(alignment);
     SetPivot(pivot);
     m_T = duration;
 }