GameObjectComponent.cs 277 B

123456789101112131415
  1. using UnityEngine;
  2. namespace Model
  3. {
  4. [EntityEvent(typeof (GameObjectComponent))]
  5. public class GameObjectComponent: Component
  6. {
  7. public GameObject GameObject { get; private set; }
  8. private void Awake(GameObject gameObject)
  9. {
  10. this.GameObject = gameObject;
  11. }
  12. }
  13. }