public CritterStats(CritterSettings settings) { for (int i = 0; i < (int)CritterStatType.Count; ++i) { _values[i] = settings.statValueMax; } }
public Critters(CritterSettings critterSettings, JobManager jobManager) { m_critterSettings = critterSettings; m_jobManager = jobManager; m_critters = new List <Critter>(); for (int i = 0; i < 2; ++i) { AddCritter(new Vector3(-8.0f + i * 1.5f, ShelfPosY.Shelf1, 0)); } }
public Critter(int id, Vector3 pos, CritterSettings settings) { _id = id; _sleepTimer = 0.0f; _sleepDuration = UnityEngine.Random.value * 3f + 1f; _tasks = new List <Task>(); _sprite = settings.InstantiateCritterBehaviour(pos, Quaternion.identity); _emote = _sprite.transform.Find("emote").gameObject; _stats = new CritterStats(settings); _settings = settings; }