Esempio n. 1
0
    public virtual void Local_BeginStrikes(int numStrikes, ViewModel vm, ItemRepresentation itemRep, IStrikeGunItem itemInstance, ref HumanController.InputSample sample)
    {
        string name = "strike" + numStrikes;

        vm.Play(name, PlayMode.StopAll);
        this.strikeSounds[numStrikes - 1].PlayLocal(Camera.main.transform, Vector3.zero, 1f, UnityEngine.Random.Range((float)0.96f, (float)1.03f), 2f, 2f, 0);
    }
Esempio n. 2
0
 public virtual void Local_CancelStrikes(ViewModel vm, ItemRepresentation itemRep, IStrikeGunItem itemInstance, ref HumanController.InputSample sample)
 {
     vm.CrossFade("idle", 0.15f);
 }
Esempio n. 3
0
    public virtual void Local_BeginStrikes(int numStrikes, ViewModel vm, ItemRepresentation itemRep, IStrikeGunItem itemInstance, ref HumanController.InputSample sample)
    {
        string str = string.Concat("strike", numStrikes);

        vm.Play(str, PlayMode.StopAll);
        AudioClip audioClip = this.strikeSounds[numStrikes - 1];

        audioClip.PlayLocal(Camera.main.transform, Vector3.zero, 1f, UnityEngine.Random.Range(0.96f, 1.03f), 2f, 2f, 0);
    }