Пример #1
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);
        }
Пример #2
0
 public void SetMatrixRegion(IMatrixRegion <IGameObject> region)
 {
     interestArea?.Dispose();
     interestArea?.SetMatrixRegion(region);
 }