Exemplo n.º 1
0
        private void CreateAndAddNewChecker()
        {
            AreaCollisionChecker collisionCheckerInstance = (AreaCollisionChecker)collisionCheckerPrefab.Instance();

            GetParent().CallDeferred("add_child", collisionCheckerInstance);

            _pooledCollisionCheckers.Add(collisionCheckerInstance);
        }
Exemplo n.º 2
0
        public AreaCollisionChecker GetAreaCollisionChecker()
        {
            AreaCollisionChecker areaCollisionChecker = GetFreeCollisionChecker();

            areaCollisionChecker.SetInUse();

            return(areaCollisionChecker);
        }
Exemplo n.º 3
0
 public void ReturnCollisionChecker(AreaCollisionChecker areaCollisionChecker) => areaCollisionChecker.SetFree();