Example #1
0
    public void PullRope()
    {
        RopePullGame.RopePullRope.Instance.PullRope((int)_playerLookDirection * OwnCharacter.status.strength * PowerOffset);
        OwnCharacter.PullRopeAutoRelease();

        _outlineshader.PlayLineEffect();
        AudioManager.Instance.PlaySound(eSoundId.Pull);
    }
Example #2
0
    public void NetworkPullRope()
    {
        if (NetworkManager.Instance.isOwnHost)
        {
            NetworkManager.Instance.SendRequestRopePull(OwnCharacter.status.strength * -1);
        }
        else
        {
            NetworkManager.Instance.SendRequestRopePull(OwnCharacter.status.strength);
        }

        OwnCharacter.PullRopeAutoRelease();
        _outlineshader.PlayLineEffect();
        AudioManager.Instance.PlaySound(eSoundId.Pull);
    }