Пример #1
0
 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>();
 }
Пример #2
0
 // 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>();
     }
 }
Пример #3
0
 public void Initialize()
 {
     npc1_Data = GetComponent <NPC1_Data>();
     ani       = GetComponent <Animator>();
 }
Пример #4
0
 public void Initialize()
 {
     npc1_Data = GetComponent <NPC1_Data>();
 }