mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 18:31:07 +00:00
New Class: Stats (Main class storing our variables for our resources) Added some buttons and text fields to the scene to show off the functionality of our Stats class.
27 lines
527 B
C#
27 lines
527 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class MaisonHumain : Maison {
|
|
|
|
private int nbHumans;
|
|
|
|
void addHuman(int amount)
|
|
{
|
|
if (nbHumans < MAX_CARACTERES)
|
|
{
|
|
//TODO: assign zombie to this house or decrement houseless zombie
|
|
nbHumans++;
|
|
}
|
|
|
|
else
|
|
{
|
|
//TODO: alert to player: Too many zombies in one house! You must construct additional zombie houses.
|
|
}
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|