Exemplo n.º 1
0
        public void VectorTo(Vector3 from, Vector3 to, float time, SA_EaseType easeType = SA_EaseType.linear)
        {
            transform.position = from;
            FinalVectorValue   = to;

            SA_iTween.MoveTo(gameObject, SA_iTween.Hash("position", to, "time", time, "easeType", easeType.ToString(), "oncomplete", "onTweenComplete", "oncompletetarget", gameObject));
        }
Exemplo n.º 2
0
        //--------------------------------------
        // Public Methods
        //--------------------------------------


        public void ValueTo(float from, float to, float time, SA_EaseType easeType = SA_EaseType.linear)
        {
            Vector3 pos = transform.position;

            pos.x = from;
            transform.position = pos;
            FinalFloatValue    = to;

            SA_iTween.MoveTo(gameObject, SA_iTween.Hash("x", to, "time", time, "easeType", easeType.ToString(), "oncomplete", "onTweenComplete", "oncompletetarget", gameObject));
        }