Esempio n. 1
0
        public virtual void Activate()
        {
            // TODO may need to have a seporate restart method for time ones
            value = (int)Random.Range(valueRange.x, valueRange.y);

            if (statsManager == null)
            {
                statsManager = GameObjectUtil.GetSingleton <StatsManager>();
            }

            if (resetValueOnActivate)
            {
                statsManager.ResetStat(statName);
            }

            startValue = statsManager.GetStatValue(statName);
        }
Esempio n. 2
0
 private void Start()
 {
     statsManager = GameObjectUtil.GetSingleton <StatsManager>();
 }
Esempio n. 3
0
 private void Start()
 {
     soundManager     = GameObjectUtil.GetSingleton <SoundManager>();
     lockDelayElapsed = 0;
 }