示例#1
0
    // Update is called once per frame
    void Update()
    {
        transform.position += new Vector3(speed, 0, 0);

        if (transform.position.x >= FinishX)
        {
            sriteset.NextSprite();
            SetStartPositionAndScale();
        }
    }
示例#2
0
    // Update is called once per frame
    void Update()
    {
        sriteset.sr.sortingOrder = 0;
        {
            transform.position += new Vector3(0, -speed, 0);

            if (transform.position.y <= 0)
            {
                sriteset.NextSprite();
                SetStartPositionAndScale();
            }
        }
    }
示例#3
0
文件: Item.cs 项目: Ramazoid/Ram
 private void RestartNext()
 {
     sriteset.NextSprite();
     SetStartPositionAndScale();
     game.EarnCoins();
 }