Exemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (played)
     {
         return;
     }
     animationSequence.Run();
     played = true;
 }
Exemplo n.º 2
0
        public void Interact(GameObject interactor)
        {
            if (playOnlyOnce && played)
            {
                return;
            }

            animationSequence.Run();
            played = true;
        }