Example #1
0
    void InitRiver(TileLogic logic, int x, int y)
    {
        int food  = 8;
        int light = 9;
        int water = Mathf.Clamp(10 - Mathf.Abs(x - y), 0, 10);

        logic.OnInit(x, y, light, water, food);
    }
Example #2
0
    void InitCoast(TileLogic logic, int x, int y)
    {
        int food  = 10;
        int light = 8;
        int water = Mathf.Clamp(10 - x / 2, 0, 10);

        logic.OnInit(x, y, light, water, food);
    }
Example #3
0
 void InitRandom(TileLogic logic, int x, int y)
 {
     logic.OnInit(x, y);
 }