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> (); }
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> (); }