protected virtual void Handle()
{
if ((this.m_Canvas != null) && this.m_Canvas.isRootCanvas)
{
if (this.m_Canvas.renderMode == RenderMode.WorldSpace)
{
this.HandleWorldCanvas();
}
else
{
switch (this.m_UiScaleMode)
{
case ScaleMode.ConstantPixelSize:
this.HandleConstantPixelSize();
break;
case ScaleMode.ScaleWithScreenSize:
this.HandleScaleWithScreenSize();
break;
case ScaleMode.ConstantPhysicalSize:
this.HandleConstantPhysicalSize();
break;
}
}
}
}