36 lines
697 B
C#
36 lines
697 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class SeasonVariables
|
|
{
|
|
public enum Seasons
|
|
{
|
|
Spring = 0,
|
|
Summer = 1,
|
|
Autumn = 2,
|
|
Winter = 3
|
|
}
|
|
|
|
[Tooltip("When enabled the system will change seasons automaticly when enough days passed.")]
|
|
public bool calcSeasons;
|
|
|
|
[Tooltip("The current season.")]
|
|
public Seasons currentSeasons;
|
|
|
|
[HideInInspector]
|
|
public Seasons lastSeason;
|
|
|
|
[Tooltip("How many days in spring?")]
|
|
public float SpringInDays = 90f;
|
|
|
|
[Tooltip("How many days in summer?")]
|
|
public float SummerInDays = 93f;
|
|
|
|
[Tooltip("How many days in autumn?")]
|
|
public float AutumnInDays = 92f;
|
|
|
|
[Tooltip("How many days in winter?")]
|
|
public float WinterInDays = 90f;
|
|
}
|