示例#1
0
 void Start()
 {
     mainscr     = GetComponent <WarriorMainScript> ();
     animator    = GetComponent <Animator> ();
     audioSource = GetComponent <AudioSource> ();
 }
示例#2
0
 void Start()
 {
     an   = GetComponent <Animator> ();
     wars = GetComponentInParent <WarriorMainScript> ();
 }