ClothingController.cs 339 B

1234567891011121314151617
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ClothingController : MonoBehaviour {
  5. [SerializeField]
  6. private SkinnedMeshRenderer meshRenderer;
  7. int counter = 0;
  8. public void OnClick()
  9. {
  10. meshRenderer.SetBlendShapeWeight(1, counter);
  11. counter+=20;
  12. }
  13. }