House menu ui
This commit is contained in:
parent
4612938b54
commit
e9f4f3344b
5 changed files with 1020 additions and 33 deletions
|
|
@ -1,27 +0,0 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
public class DayController : MonoBehaviour {
|
||||
private int dayCount = 0;
|
||||
private static UnityEvent newDayEvent;
|
||||
public static UnityEvent NewDayEvent => newDayEvent;
|
||||
|
||||
|
||||
private void OnMouseDown() {
|
||||
newDay();
|
||||
}
|
||||
|
||||
void Start() {
|
||||
newDayEvent ??= new UnityEvent();
|
||||
|
||||
newDayEvent.AddListener(newDay);
|
||||
}
|
||||
|
||||
private void newDay() {
|
||||
dayCount++;
|
||||
newDayEvent?.Invoke();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue