using UnityEngine;
using System.Collections;
public class panelDrag : MonoBehaviour {
TweenPosition tween;
public Transform grid;
bool clicked = false;
void Start()
{
tween = gameObject.GetComponent<TweenPosition>();
transform
.localPosition = new Vector3
(0,
500,
0); tween.from = transform.localPosition;
}
void Update()
{
}
void OnClick()
{
tween
.to = new Vector3
(0,
-500,
0);
Debug.Log("CLICKED");
}
void OnDrag()
{
}
}