예제 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag(Tags.PLAYER_TAG))
     {
         rotatePlatform.ActivateRotation();
     }
 }
예제 #2
0
 public void ActivateMovement()
 {
     canMove = true;
     // play sfx
     soundFx.PlayAudio(true);
     // rotate player
     if (activateRotation)
     {
         rotatePlatform.ActivateRotation();
     }
 }