private void Awake() { _enemyProperties = transform.parent.GetComponent <EMovement>().enemyProperties; _currentHealth = _enemyProperties.health; spawner = GameObject.Find("EnemySpawner").GetComponent <EnemySpawner>(); pointManager = GameObject.Find("Game Manger").GetComponent <PointManger>(); }
void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }