예제 #1
0
    void FindTarget()
    {
        List <Fader> list = fm.GetList();
        //pick random target - ideally, we pick closest, but eeeh, let's not waste operations
        int index = Random.Range(0, list.Count);

        target = list[index].gameObject;
    }
예제 #2
0
    private void AddScore()
    {
        score += 1;
        SetScore(score);

        if (score % 5 == 0)
        {
            enemyManager.SpawnEnemy(fishManager.GetList());
        }
    }