void Start() { panel = GetComponent <Panel>(); // 처음 UI 가 있을 위치를 설정한다. Panel.Position centerPos = new Panel.Position(Center, TextAnchor.MiddleCenter, TextAnchor.MiddleCenter); panel.AddPosition(centerPos); }
private void Start() { panel = GetComponent <Panel>(); var centerPos = new Panel.Position(Center, TextAnchor.MiddleCenter, TextAnchor.MiddleCenter); panel.AddPosition(centerPos); }
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; } }
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; } }