public void DoPosing(PlayerInput.DirectionType direction) { if (PlayerInput.DirectionType.IDLE != PlayerInput.direction) { audioSource.PlayOneShot(huwa); } switch (direction) { case PlayerInput.DirectionType.UP: posingController.Up(); break; case PlayerInput.DirectionType.DOWN: posingController.Down(); break; case PlayerInput.DirectionType.RIGHT: posingController.Right(); break; case PlayerInput.DirectionType.LEFT: posingController.Left(); break; case PlayerInput.DirectionType.IDLE: posingController.Idle(); break; default: break; } }
public void DoPosing(PlayerInput.DirectionType direction) { switch (direction) { case PlayerInput.DirectionType.UP: break; case PlayerInput.DirectionType.DOWN: break; case PlayerInput.DirectionType.RIGHT: break; case PlayerInput.DirectionType.LEFT: break; default: break; } }
public void DoPosing(PlayerInput.DirectionType direction) { switch (direction) { case PlayerInput.DirectionType.UP: posingController.Up(); break; case PlayerInput.DirectionType.DOWN: posingController.Down(); break; case PlayerInput.DirectionType.RIGHT: posingController.Right(); break; case PlayerInput.DirectionType.LEFT: posingController.Left(); break; default: break; } }
public void nextDirection() { int r = UnityEngine.Random.Range(0, 4); directionType = (PlayerInput.DirectionType)Enum.ToObject(typeof(PlayerInput.DirectionType), r); }