Beispiel #1
0
        public void RemoveActiveInput(RaptorInput input)
        {
            //Guard condition
            if (!ActiveInputs.Contains(input))
            {
                return;
            }

            ActiveInputs.Remove(input);
            CalculateMatrix();
        }
Beispiel #2
0
        public IEnumerator AddActiveInput(RaptorInput input, float durationInSeconds = 0)
        {
            ActiveInputs.Add(input);
            CalculateMatrix();

            if (durationInSeconds == 0)
            {
                yield break;
            }
            yield return(new WaitForSeconds(durationInSeconds));

            RemoveActiveInput(input);
        }