GameObject go = Instantiate (FloatingScreenNotificationPrefab) as GameObject;
Transform t = go.transform;
t.parent = gameObject.transform;
t
.localPosition = new Vector3
(-240,
-235,
0); t.localRotation = Quaternion.identity;
t.localScale = Vector3.one;
go.layer = gameObject.layer;
FloatingScreenNotification n = go.GetComponent<FloatingScreenNotification> ();
n.Label.text = "+" + amount.ToString ();
n.Sprite.enabled = false;
TweenPosition p = n.TweenPosition;
p.SetStartToCurrentValue ();
p.to = p.from;
p.to.y += 60;
p.enabled = true;
UIWidget w = n.Widget;
Panel.AddWidget (w);