// Use this for initialization void Start() { score = FindObjectOfType <ScoreScript>(); curHealth = health; _lockOn = FindObjectOfType <Lock_On>(); _targeted = FindObjectOfType <IsTargeted>(); }
// Use this for initialization void Start() { _sm = FindObjectOfType <SoundManager>(); _world = FindObjectOfType <World>(); _score = FindObjectOfType <ScoreScript>(); curHealth = health; _lockOn = FindObjectOfType <Lock_On>(); _targeted = FindObjectOfType <IsTargeted>(); _wood = FindObjectOfType <WoodScript>(); _stone = FindObjectOfType <StoneScript>(); if (_score.scoreValue > 10) { health = (health * 2); if (_score.scoreValue > 20) { health = (health + 40); if (_score.scoreValue > 50) { health = (health * 2); } } } }