Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        pathFollower = GetComponentInChildren <PathFollower>();
        pathFollower.Pause();
        collider   = GetComponentInChildren <CircleCollider2D>();
        spriteAnim = GetComponentInChildren <SpriteAnim>();
        spriteAnim.Init();

        pathFollower.speed      = pathFollower.pathCreator.path.length / jumpTime;
        spriteAnim.frameSeconds = jumpTime / spriteAnim.spriteNum;
        state = State.wait;
    }