void Start() { //controlButtons=GameObject.FindGameObjectWithTag("controlButtons"); // rend=controlButtons.GetComponent<Renderer>(); p_status = GameObject.Find("Pbody").GetComponent <PlayerStatus>(); m_status = GameObject.FindGameObjectWithTag("Enemy").GetComponent <MonsterStatus>(); P_unitstats = GameObject.Find("Pbody").GetComponent <UnitStats>(); M_unitstats = GameObject.FindGameObjectWithTag("Enemy").GetComponent <UnitStats>(); reached = this.GetComponent <Encounter_reached>(); //reached.Encounter=true; finish_Encounter = false; bool_comfirm_attack = false; }
void Start() { reached = GameObject.Find("Control_Sprite").GetComponent <Encounter_reached>(); }