示例#1
0
 void Start()
 {
     panel = GetComponent <UIPanel> ();
     UIPanel.Position centerPos = new UIPanel.Position(Center, TextAnchor.MiddleCenter, TextAnchor.MiddleCenter);
     panel.AddPosition(centerPos);
 }