void Awake() { // Get PAD Manager padManager = GetComponent <PADManager>(); // 1. Use SetMode to configure AirSig function airsigManager.SetMode( AirSigManager.Mode.DeveloperDefined); // 2. Set classifier and sub classifier airsigManager.SetClassifier( "Project_Gestures", ""); // 3. Use SetDeveloperDefinedTarget to configure // targets for identification function airsigManager.SetDeveloperDefinedTarget( new List <string> { "WAVE", "Thrust", "Shake", "Spooky" } ); // 4. Register callback for identification // result developerGesture = new AirSigManager.OnDeveloperDefinedMatch( HandleOnDeveloperDefinedMatch); airsigManager.onDeveloperDefinedMatch += developerGesture; }
void Start() { npc_animator = actor.GetComponent <Animator>(); padManager = FindObjectOfType <PADManager>(); audioSource = GetComponent <AudioSource>(); audioSource.spatialBlend = 0.0f; timer = DIALOGUE_TIMER_CONST; }