protected void RpcAttack() { if (basicAttack != null) { basicAttack.DoAttack(this); } else { Debug.LogErrorFormat("{0} | BasicAttack is not set", name); } }