示例#1
0
        private static bool parseMoveTo(JSONAction a)
        {
            Hashtable hash = new Hashtable();

            hash.Add("disable", true);
            hash.Add("delay", a.delay);
            hash.Add("time", a.time);
            setupHashEase(hash, a);
            if (a.path.Length > 1)
            {
                hash.Add("path", a.getVector3Path());                              // move to position
            }
            else if (a.path.Length == 1)
            {
                hash.Add("position", a.path[0].toVector3());                                     // move with path
            }
            else
            {
                Debug.LogWarning("Animator: MoveTo missing 'position' or 'path'.");
                return(false);
            }
            //AMTween.MoveTo(getGO(a.go), hash);
            return(true);
        }
示例#2
0
 private static bool parseMoveTo(JSONAction a)
 {
     Hashtable hash = new Hashtable();
     hash.Add("disable",true);
     hash.Add("delay",a.delay);
     hash.Add("time",a.time);
     setupHashEase(hash, a);
     if(a.path.Length > 1) hash.Add("path",a.getVector3Path()); // move to position
     else if(a.path.Length == 1) hash.Add("position", a.path[0].toVector3()); // move with path
     else {
         Debug.LogWarning("Animator: MoveTo missing 'position' or 'path'.");
         return false;
     }
     //AMTween.MoveTo(getGO(a.go), hash);
     return true;
 }