Esempio n. 1
0
        protected override void OnAwake()
        {
            var gameObjectGetter = Components.Get <IGameObjectGetter>();
            var gameObject       = gameObjectGetter.Get();

            interestArea = new InterestArea <IGameObject>(gameObject);
        }
Esempio n. 2
0
        private void Start()
        {
            var scene        = SceneUtils.GetSceneGameObject();
            var matrixRegion = scene.GetScene().MatrixRegion;
            var gameObject   = GetComponent <IGameObject>();

            interestArea = new InterestArea <IGameObject>(gameObject);
            interestArea.SetMatrixRegion(matrixRegion);
        }