// Update is called once per frame void Update() { string a = "Player(" + Game.Network.NetWork.Client_id.ToString() + ")"; player = GameObject.Find("Players").transform.Find(a).gameObject.GetComponent <PlayerStatus>(); if (is_collision) { if (Input.GetKeyUp(KeyCode.F) && NPC_ON == true) { NPC_ON = false; CMgr.NPCCamOff(this.gameObject); player.is_move = true; UI_conversation.SetActive(false); } else if (Input.GetKeyUp(KeyCode.F) && NPC_ON == false) { NPC_ON = true; player.Ani_State = PlayerStatus.ANI_TYPE.IDEL; UI_conversation.SetActive(true); //player.is_move = true; } } if (NPC_ON) { CMgr.NPCCamOn(this.gameObject); player.is_move = false; } animator.SetInteger("Ani_type", ani_type); }