Esempio n. 1
0
File: Main.cs Progetto: qw1998/3D
        public Vector3 Move()
        {
            Vector3 target;

            if (is_right)
            {
                move_script.setDestination(left_pos);
                is_right = false;
                target   = left_pos;
            }
            else
            {
                move_script.setDestination(right_pos);
                is_right = true;
                target   = right_pos;
            }
            return(target);
        }
Esempio n. 2
0
File: Main.cs Progetto: qw1998/3D
 public void moveToPosition(Vector3 destination)
 {
     move_script.setDestination(destination);
 }