Input.accelerationEventCount

매뉴얼로 전환
public static int accelerationEventCount ;

설명

Number of acceleration measurements which occurred during last frame.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Update() { if (Input.accelerationEventCount > 0) print("We got new acceleration measurements"); } }