Пример #1
0
    public void ThrowProjectile(float force)
    {
        Weight.mass     = force;
        _wasFired       = true;
        Rope.breakForce = 0;
        Weight.AddForce(0, -(force), 0);
        SoundPlayer.Instance.PlayClip(SoldierAudioClips.ReturnChosenClip());
        SliderPingPong.Instance.StopPingPong();

        Debug.Log("Throwing!");
        Line.enabled = false;
    }
Пример #2
0
 void CallRandomExplosion()
 {
     SoundPlayer.Instance.PlayClipWithoutLoop(_clips.ReturnChosenClip());
 }