BossFight.RpcShockWave C# (CSharp) Method

RpcShockWave() private method

private RpcShockWave ( ) : void
return void
    private void RpcShockWave()
    {
        if (isLocalPlayer && !this.cnt.IsJumping && this.state == State.Infight)
        {
            this.syncChar.Life -= 50 * 100 / gameObject.GetComponentInParent<Inventory>().Armor;
            Vector3 dir = (this.character.transform.position - GameObject.FindGameObjectWithTag("Boss").transform.position).normalized;
            gameObject.GetComponentInChildren<Rigidbody>().AddForce(dir.x * 15000f, 10000f, dir.z * 15000f);
            gameObject.GetComponentInParent<Controller>().CdDisable = 0.5f;
        }
    }