void CmdMove(Vector3 move) { if (info.GetHasHook()) { RpcMove(move); } }
void CmdHookSkill(Vector3 dir) { if (!info.GetHasHook()) { return; } anim.SetTrigger("Hook"); //RpcHookAnimatorUpdate (); GameObject hooks = Instantiate(hook); hooks.transform.position = hookSpawn.position; hooks.GetComponent <Rigidbody> ().velocity = dir * hookSpeed; hooks.GetComponent <HookSys> ().hunter = this.gameObject; info.SetHasHook(false); NetworkServer.Spawn(hooks); }