static void Apply(SpriteRenderer _renderer, CharacterSkinPart _skin) { _renderer.sprite = _skin.sprite; _renderer.transform.localPosition = _skin.position; var _angle = _renderer.transform.localEulerAngles; _angle.z = _skin.angle; _renderer.transform.localEulerAngles = _angle; var _scale = new Vector3(_skin.scale.x, _skin.scale.y, 1); _renderer.transform.localScale = _scale; }
static void Apply(SpriteRenderer _renderer, CharacterSkinPart _skin) { _renderer.sprite = _skin.sprite; _renderer.transform.localPosition = _skin.position; var _angle = _renderer.transform.localEulerAngles; _angle.z = _skin.angle; _renderer.transform.localEulerAngles = _angle; var _scale = new Vector3(_skin.scale.x, _skin.scale.y, 1); _renderer.transform.localScale = _scale; }