Example #1
0
 void OnDestroy()
 {
     foreach (Type componentType in ComponentTypes)
     {
         worldContext.GetComponentsContainer(componentType).Remove(components[componentType]);
     }
 }
Example #2
0
    public void Cache(WorldContext worldContext)
    {
        doombaAIComponents = worldContext.GetComponentsContainer <DoombaAIComponent>();

        tileFieldComponent = worldContext.Get <TileFieldComponent>(0);

        timeComponent = worldContext.Get <TimeComponent>(0);

        obstaclesLayer = LayerMask.GetMask("Obstacles");
    }
Example #3
0
    public void Cache(WorldContext worldContext)
    {
        feetComponents = worldContext.GetComponentsContainer <FeetComponent>();

        tileFieldComponent = worldContext.Get <TileFieldComponent>(0);

        antagonistComponent = worldContext.Get <AntagonistComponent>(0);

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);
    }
    public void Cache(WorldContext worldContext)
    {
        antagonistComponents = worldContext.GetComponentsContainer <AntagonistComponent>();

        gameStateComponent = worldContext.Get <GameStateComponent>(0);

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);

        cameraComponent = worldContext.Get <CameraComponent>(0);

        canvasComponent = worldContext.Get <CanvasComponent>(0);
    }
Example #5
0
    public void Cache(WorldContext worldContext)
    {
        tossedComponents = worldContext.GetComponentsContainer <TossedComponent>();

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);

        antagonistComponent = worldContext.Get <AntagonistComponent>(0);

        obstacleLayer = LayerMask.NameToLayer("Obstacles");

        enemiesLayer = LayerMask.NameToLayer("Enemies");
    }
Example #6
0
    public void Cache(WorldContext worldContext)
    {
        h0nckerAnimationComponents = worldContext.GetComponentsContainer <H0nckerAnimationComponent>();

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);

        cameraComponent = worldContext.Get <CameraComponent>(0);

        canvasComponent = worldContext.Get <CanvasComponent>(0);

        antagonistComponent = worldContext.Get <AntagonistComponent>(0);
    }
Example #7
0
    public void Cache(WorldContext worldContext)
    {
        projectileComponents = worldContext.GetComponentsContainer <ProjectileComponent>();

        timeComponent = worldContext.Get <TimeComponent>(0);

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);

        antagonistComponent = worldContext.Get <AntagonistComponent>(0);

        obstacleLayer = LayerMask.NameToLayer("Obstacles");

        itemsLayer = LayerMask.NameToLayer("Items");

        enemiesLayer = LayerMask.NameToLayer("Enemies");

        playerLayer = LayerMask.NameToLayer("Player");
    }
    public void Cache(WorldContext worldContext)
    {
        terminatorAIComponents = worldContext.GetComponentsContainer <TerminatorAIComponent>();

        h0ncker = worldContext.Get <InputComponent>(0).Entity;

        playersPositionComponent = h0ncker.GetComponent <PositionComponent>();

        timeComponent = worldContext.Get <TimeComponent>(0);

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);

        obstaclesLayer = LayerMask.GetMask("Obstacles");

        playerLayer = LayerMask.GetMask("Player");

        navMeshPath = new NavMeshPath();
    }
    public void Cache(WorldContext worldContext)
    {
        sharkAIComponents = worldContext.GetComponentsContainer <SharkAIComponent>();

        h0ncker = worldContext.Get <InputComponent>(0).Entity;

        playersPositionComponent = h0ncker.GetComponent <PositionComponent>();

        timeComponent = worldContext.Get <TimeComponent>(0);

        vfxPoolComponent = worldContext.Get <VFXPoolComponent>(0);

        antagonistComponent = worldContext.Get <AntagonistComponent>(0);

        obstaclesLayer = LayerMask.NameToLayer("Obstacles");

        itemsLayer = LayerMask.NameToLayer("Items");

        enemiesLayer = LayerMask.NameToLayer("Enemies");

        playerLayer = LayerMask.NameToLayer("Player");
    }
Example #10
0
    public void Cache(WorldContext worldContext)
    {
        beakComponents = worldContext.GetComponentsContainer <BeakComponent>();

        tileFieldComponent = worldContext.Get <TileFieldComponent>(0);
    }
    public void Cache(WorldContext worldContext)
    {
        locomotionComponents = worldContext.GetComponentsContainer <LocomotionComponent>();

        timeComponent = worldContext.Get <TimeComponent>(0);
    }
    public void Cache(WorldContext worldContext)
    {
        inventoryComponents = worldContext.GetComponentsContainer <InventoryComponent>();

        inventoryWindowComponent = worldContext.Get <InventoryWindowComponent>(0);
    }
Example #13
0
    public void Cache(WorldContext worldContext)
    {
        positionOnTileComponents = worldContext.GetComponentsContainer <PositionOnTileComponent>();

        tileFieldComponent = worldContext.Get <TileFieldComponent>(0);
    }