示例#1
0
        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();
        }
示例#2
0
 private void Start()
 {
     lifeCount              = 10;
     datarecorder           = GameObject.Find("Main Camera").GetComponent <DataRecorder>();
     datarecorder.LifeCount = lifeCount;
 }
示例#3
0
 void Start()
 {
     datarecorder = GameObject.Find("Main Camera").GetComponent <DataRecorder>();
     color        = gameObject.GetComponent <SpriteRenderer>().color;
 }