コード例 #1
0
 void Start()
 {
     panel = GetComponent <Panel>();
     // 처음 UI 가 있을 위치를 설정한다.
     Panel.Position centerPos = new Panel.Position(Center, TextAnchor.MiddleCenter, TextAnchor.MiddleCenter);
     panel.AddPosition(centerPos);
 }
コード例 #2
0
    private void Start()
    {
        panel = GetComponent <Panel>();
        var centerPos = new Panel.Position(Center, TextAnchor.MiddleCenter, TextAnchor.MiddleCenter);

        panel.AddPosition(centerPos);
    }
コード例 #3
0
 void MovePanel(StatPanel obj, string pos, ref Tweener t)
 {
     Panel.Position target = obj.panel[pos];
     if (obj.panel.CurrentPosition != target)
     {
         if (t != null)
         {
             t.Stop();
         }
         t          = obj.panel.SetPosition(pos, true);
         t.duration = 0.5f;
         t.equation = EasingEquations.EaseOutQuad;
     }
 }
コード例 #4
0
 void MovePanel(InventoryPanel obj, string pos, Tweener t)
 {
     Panel.Position target = obj.panel[pos];
     if (obj.panel.CurrentPosition != target)
     {
         if (t != null && t.easingControl != null)
         {
             t.easingControl.Stop();
         }
         t = obj.panel.SetPosition(pos, true);
         t.easingControl.duration = 0.5f;
         t.easingControl.equation = EasingEquations.EaseOutQuad;
     }
 }