コード例 #1
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);
    }
コード例 #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");
    }
コード例 #3
0
    public void Cache(WorldContext worldContext)
    {
        beakComponents = worldContext.GetComponentsContainer <BeakComponent>();

        tileFieldComponent = worldContext.Get <TileFieldComponent>(0);
    }
コード例 #4
0
    public void Cache(WorldContext worldContext)
    {
        positionOnTileComponents = worldContext.GetComponentsContainer <PositionOnTileComponent>();

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