예제 #1
0
    // Use this for initialization
    void Start()
    {
        float number= iTween.PathLength(iTweenPath.GetPath("path1"));

        scene = (Scene)FindObjectOfType(typeof(Scene));
        distance= (1f/number);
        balls = new LinkedList<Ball>();
        balls.AddFirst(scene.getShooter().createBall(firstPosition,true,false));	//Add first ball to the path
        firstPosition= iTween.PointOnPath(iTweenPath.GetPath("path1"), 0.0f);
    }