private void OnUpdatePlaying_OneAtATime(TriggeredBehaviour nextIncomplete) { //TODO: This method and the area that calls it needs some revision. //if (sequenceType == SequenceType.OneAtATime_AutomaticPlayReady && nextIncomplete.IsReady) // nextIncomplete.RequestPlaying (); if (sequenceType == SequenceType.OneAtATime) { return; } if (nextIncomplete.IsPlaying) { return; } if (nextIncomplete.IsReady) { nextIncomplete.RequestPlaying(_lastTriggerer); } /*for (int i = 0; i < _behaviours.Count; i++) * { * if (_behaviours[i].IsPlaying) * break; * if (_behaviours[i].IsReady) * { * _behaviours[i].RequestPlaying (); * break; * } * }*/ }
private void OnUpdatePlaying_RapidInOrder(TriggeredBehaviour nextIncomplete) { if (_nextActivate >= _behaviours.Count) { if (nextIncomplete.IsReady && nextIncomplete.CurPlaysRequested >= 0) { RequestComplete(); } return; } TriggeredBehaviour behaviour = _behaviours[_nextActivate]; if (behaviour.IsReady) { behaviour.RequestPlaying(_lastTriggerer); } _nextActivate++; }