コード例 #1
0
 protected override void DestroyInternal()
 {
     _health = null;
     _prefab = null;
 }
コード例 #2
0
 private void OnHealthChanged(Entity e, HealthModule h, int delta)
 {
     _desiredScale = (float)h.HitPoints / (float)h.MaxHitPoints;
 }