Exemple #1
0
        public void Dig()
        {
            //Debug.Log("Attempted Dig\n", this);
            //Are we held.
            //if (IsGrabbed())
            //{
            HapticSequence seq = new HapticSequence();

            seq.AddEffect(.25f, new HapticEffect(Effect.Buzz));
            AreaFlag Where = PrimaryLeft ? AreaFlag.Forearm_Left : AreaFlag.Forearm_Right;

            seq.Play(Where);
            //}
            Digged = true;

            leftActions.TriggerDecayingHapticPulse(1f, .5f, .02f, .8f);
            rightActions.TriggerDecayingHapticPulse(1f, .5f, .02f, .8f);
        }