void Start() { enemyMaxNum = 10; enemySpawnerMaxNum = 2; enemy_prefab = Resources.Load <GameObject>("prefab/Enemy"); enemySpawner_prefab = Resources.Load <GameObject>("prefab/EnemySpawner"); datarecorder = gameObject.GetComponent <DataRecorder>(); enemyList = new List <GameObject>(); enemySpawnerList = new List <GameObject>(); BaseEnemy(); }
private void Start() { lifeCount = 10; datarecorder = GameObject.Find("Main Camera").GetComponent <DataRecorder>(); datarecorder.LifeCount = lifeCount; }
void Start() { datarecorder = GameObject.Find("Main Camera").GetComponent <DataRecorder>(); color = gameObject.GetComponent <SpriteRenderer>().color; }