Example #1
0
 public static void PlaySequenceStartedEvent(SequenceCollection.HeroAction heroAction)
 {
     if (OnPlaySequenceStarted != null)
     {
         OnPlaySequenceStarted(heroAction);
     }
 }
Example #2
0
 void OnPlaySequenceStarted(SequenceCollection.HeroAction heroAction)
 {
     if (heroAction == SequenceCollection.HeroAction.MoveForward)
     {
         float time = TempoUtils.instance.GetBeatInSeconds() * 4;
         //transform.DOMoveX(transform.position.x - movementDistance, time).SetEase(Ease.InOutSine);
         endPoint = totalDistance + movementDistance;
         DOTween.To(() => totalDistance, x => totalDistance = x, endPoint, time).SetEase(Ease.Linear);
     }
 }
 // HERO ACTION CAN BE NONE IF SEQUENCDE NOT EXIST OR SOME OF THE ACTION ENUMS
 public void FilterSequence(List <int> recording)
 {
     heroAction = SequenceCollection.instance.CheckIfSequenceExsist(recording);
 }
Example #4
0
 void OnPlaySequenceStarted(SequenceCollection.HeroAction heroAction)
 {
     heroActions[heroAction]();
 }
Example #5
0
 private void OnPlaySequenceStarted(SequenceCollection.HeroAction heroAction)
 {
     actionText.text = heroAction.ToString();
 }