Beispiel #1
0
 void Start()
 {
     CPU       = transform.root.gameObject.GetComponent <AI_CPU> ();
     hp        = CPU.HP;
     maxHp     = CPU.MaxHP;
     thePlayer = GameObject.FindGameObjectWithTag("Player");
     sprite    = transform.root.gameObject.GetComponent <SpriteRenderer> ();
 }
 void Awake()
 {
     CPU = transform.root.gameObject.GetComponent<AI_CPU> ();
     audioSource = GetComponent<AudioSource> ();
     foreach (Transform child in transform) {
         Thrusters.Add (child.gameObject);
     }
 }
 void Start()
 {
     CPU = transform.root.gameObject.GetComponent<AI_CPU> ();
     hp = CPU.HP;
     maxHp = CPU.MaxHP;
     thePlayer = GameObject.FindGameObjectWithTag ("Player");
     sprite = transform.root.gameObject.GetComponent<SpriteRenderer> ();
 }
Beispiel #4
0
 void Awake()
 {
     CPU         = transform.root.gameObject.GetComponent <AI_CPU> ();
     audioSource = GetComponent <AudioSource> ();
     foreach (Transform child in transform)
     {
         Thrusters.Add(child.gameObject);
     }
 }
 void Awake()
 {
     CPU = transform.root.gameObject.GetComponent<AI_CPU> ();
     audioSource = GetComponent<AudioSource> ();
 }
 void Awake()
 {
     CPU         = transform.root.gameObject.GetComponent <AI_CPU> ();
     audioSource = GetComponent <AudioSource> ();
 }