コード例 #1
0
    public void RandomNeed(Mood currentMood)
    {
        Debug.Log((int)currentMood);
        int NewWaterNeed = Random.Range(1, 2) * ((int)currentMood + 1);
        int NewFloorNeed = Random.Range(1, 2) * ((int)currentMood + 1);

        WaterNeed += NewWaterNeed;
        FloorNeed += NewFloorNeed;

        Hud.ChangeWaterNeed(WaterNeed);
        Hud.ChangeFloorNeed(FloorNeed);
    }