コード例 #1
0
 private void UpdateComponent()
 {
     if (component == null)
     {
         component = new CuiOutlineComponent();
     }
     component.Color    = _color;
     component.Distance = _distance;
 }
コード例 #2
0
ファイル: CuiGenerator.cs プロジェクト: rustmy/rustylife
 static bool EqualComponent(CuiOutlineComponent e1, CuiOutlineComponent e2)
 {
     if (e1.Color != e2.Color)
     {
         return(false);
     }
     if (e1.Distance != e2.Distance)
     {
         return(false);
     }
     return(e1.UseGraphicAlpha == e2.UseGraphicAlpha);
 }