// ------------------------------------------------- Bash ------------------------------------------------- public override void PrimaryAttack() { ShakeCamera(0.02f, 0.05f, Quaternion.Euler(0, 0, GetMouseDirection(attacking_offset.position))); CmdSetShieldTimer(); AdenwardBashView abv = Instantiate(adenward_bash_view); abv.transform.position = this.transform.position + transform.rotation * (Vector2.up * 0.5f); abv.transform.rotation = this.transform.rotation; CmdMakeAdenwardBash(); }
private void RpcMakeAdenwardBash() { if (player == Player.mine) { return; } AdenwardBashView abv = Instantiate(adenward_bash_view); abv.GetComponent <SpriteRenderer>().color = this.GetComponent <SpriteRenderer>().color; abv.transform.position = this.transform.position + transform.rotation * (Vector2.up * 0.5f); abv.transform.rotation = this.transform.rotation; }