示例#1
0
 // Use this for initialization
 void Start()
 {
     script = transform.parent.gameObject.GetComponent <EnemyStandardMovements>();
 }
 // Use this for initialization
 void Start()
 {
     hero            = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     movementsScript = GetComponent <EnemyStandardMovements>();
 }