protected override void Awake() { currentHealth = maximumHealth; spriteRender = GetComponent <SpriteRenderer> (); movement = GetComponent <HelicopterMovement> (); rdb2 = GetComponent <Rigidbody2D> (); heliCollider = GetComponent <BoxCollider2D> (); playerScore = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreManager> (); }
void Start() { anim = GetComponent <Animator>(); hMove = GameObject.Find("Helicopter").GetComponent <HelicopterMovement>(); }