public void Initialize() { npc1_Data = GetComponent <NPC1_Data>(); target_Tr = new Vector3(Random.Range(-25.0f, 25.0f), Random.Range(-13.0f, 13.0f), 0); // ani = GetComponent <AnimationState>(); }
// Use this for initialization void Start() { //_time = 0; //recoverTime = 1; waitRecoverTime = new WaitForSeconds(recoverTime); //get data state if (gameObject.GetComponent <NPC1_Data>() == true) { npc1_Data = gameObject.GetComponent <NPC1_Data>(); } else if (gameObject.GetComponent <NPC2_Data>() == true) { npc2_Data = gameObject.GetComponent <NPC2_Data>(); } }
public void Initialize() { npc1_Data = GetComponent <NPC1_Data>(); ani = GetComponent <Animator>(); }
public void Initialize() { npc1_Data = GetComponent <NPC1_Data>(); }