📜  更改精灵统一的精灵 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.805000             🧑  作者: Mango

代码示例1
public SpriteRenderer spriteRenderer;
public Sprite newSprite;

void ChangeSprite()
    {
        spriteRenderer.sprite = newSprite; 
    }