Exemplo n.º 1
0
        public void RestoreStatus(float restore, string type)
        {
            StatusKeeper status = null;

            if (GetStatusKeeper(type, out status))
            {
                status.ChangeValue(restore, StatusSeekType.Positive);
            }
        }
Exemplo n.º 2
0
        public void ReduceStatus(float reduce, string type)
        {
            StatusKeeper status = null;

            if (GetStatusKeeper(type, out status))
            {
                status.ChangeValue(reduce, StatusSeekType.Negative);
                if (status.Value < 0f)
                {
                    //we're taking away from something that's already really low
                    status.Ping = true;
                }
            }
        }