// 需要使用iTween插件
using UnityEngine;
using System.Collections;
public class CiTween : MonoBehaviour {
// Use this for initialization
public Transform cube; //控制翻滚的方块//
private float PositionZ=0.5f;
private float PositionX=0.5f;
private float PositionY=-1f;
private bool isDown=false;
private bool isDownW=false;
private bool isDownA=false;
private bool isDownS=false;
private bool isDownD=false;
private bool isLieDownZ=false;
private bool isLieDownX=false;
void Start () {
this.transform.position=cube.transform.position;
}
void Update () {
if(isLieDownX){
PositionX=1f;
}else{
PositionX=0.5f;