mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 02:11: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.
33 lines
587 B
C#
33 lines
587 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class MaisonZombie : Maison{
|
|
|
|
private int nbZombies;
|
|
|
|
void addZombie(int montant)
|
|
{
|
|
if (nbZombies < MAX_CARACTERES)
|
|
{
|
|
//TODO: assign zombie to this house OR decrement houseless zombie
|
|
nbZombies++;
|
|
}
|
|
|
|
else
|
|
{
|
|
//TODO: alert to player: Too many zombies in one house! You must construct additional zombie houses.
|
|
}
|
|
}
|
|
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|