protected override void OnAwake() { base.OnAwake(); playerGameObjectGetter = Components.GetComponent <IPlayerGameObjectGetter>().AssertNotNull(); interestAreaNotifier = playerGameObjectGetter.GetPlayerGameObject().Components.GetComponent <IInterestAreaNotifier>().AssertNotNull(); SubscribeToPositionChanged(); }
protected GameObject(string name, TransformDetails transformDetails) : base(GenerateId(), name, transformDetails) { InterestAreaNotifier = Components.AddComponent(new InterestAreaNotifier()); }
public UpdatePlayerStateOperationHandler(ISceneObject sceneObject) { this.sceneObject = sceneObject; interestAreaNotifier = sceneObject.Components.GetComponent <IInterestAreaNotifier>().AssertNotNull(); }