Пример #1
0
        protected override void OnAwake()
        {
            base.OnAwake();

            playerGameObjectGetter = Components.GetComponent <IPlayerGameObjectGetter>().AssertNotNull();
            interestAreaNotifier   = playerGameObjectGetter.GetPlayerGameObject().Components.GetComponent <IInterestAreaNotifier>().AssertNotNull();

            SubscribeToPositionChanged();
        }
Пример #2
0
 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();
        }