HeroGPUMono.cs 702 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using Unity.Mathematics;
  3. using UnityEngine;
  4. namespace GameLogic.Combat.Hero.HeroGPU
  5. {
  6. public class HeroGPUMono : MonoBehaviour
  7. {
  8. // public string monoName;
  9. public Material Material;
  10. public Mesh Mesh;
  11. public Transform rootTrans;
  12. public float4x4 animtionState= float4x4.identity;
  13. public Color edgecolor;
  14. public float edgeStength;
  15. public float injuriedStrength;
  16. private void OnEnable()
  17. {
  18. HeroGPURenderManager.Instance.AddHeroGpuRender(this);
  19. }
  20. private void OnDisable()
  21. {
  22. HeroGPURenderManager.Instance.RemoveHeroGpuRender(this);
  23. }
  24. }
  25. }