GameObjectWeight.cs 371 B

1234567891011121314151617181920212223
  1. using System;
  2. using UnityEngine;
  3. namespace DunGen
  4. {
  5. [Serializable]
  6. public sealed class GameObjectWeight
  7. {
  8. public GameObject GameObject = null;
  9. public float Weight = 1f;
  10. public GameObjectWeight()
  11. {
  12. }
  13. public GameObjectWeight(GameObject gameObject, float weight = 1f)
  14. {
  15. GameObject = gameObject;
  16. Weight = weight;
  17. }
  18. }
  19. }