using UnityEngine;
using System.Collections;
public class ProductNGUITip : MonoBehaviour {
public GameObject mainPanel;
public UILabel UI_name;
public UILabel UI_short_description;
public UILabel UI_description;
public UILabel UI_price;
[Range (0.2F, 3F)]
public float animDuration;
[Range (0F, 100F)]
public float animLenght;
private bool isShow = false;
void Start(){
NGUITools.SetActive(mainPanel, false);
}
public void show(Transform t){
if(isShow == false){
isShow = true;
NGUITools.SetActive(mainPanel, true);
SpringPosition.Begin(mainPanel, t.position, 10F);
}
}
}