internal void SetOwner(INotificationDispatcher owner) { _owner = owner; if (GameObjectUtil.IsGameObjectSource(_owner)) { _ownerGameObject = GameObjectUtil.GetGameObjectFromSource(_owner).AddOrGetComponent <GameObjectNotificationDispatcher>(); } else { _ownerGameObject = null; } }
public NotificationDispatcher() { _owner = null; _ownerGameObject = null; }