예제 #1
0
    private void Start()
    {
        if (seed == 0)
        {
            seed = Mathf.FloorToInt(Time.deltaTime * 10000000);
        }
        Random.InitState(seed);

        audioSource         = gameObject.GetComponent <AudioSource>();
        difficultyRegulator = FindObjectOfType <DifficultyRegulator>();
        guiTextHandler      = FindObjectOfType <GUITextHandler>();
        playerController    = FindObjectOfType <PlayerController>();
    }
예제 #2
0
    private void Start()
    {
        if (seed == 0)
        {
            seed = Mathf.FloorToInt(Time.deltaTime * 10000000);
        }
        Random.InitState(seed);

        difficultyRegulator = FindObjectOfType <DifficultyRegulator>();
        guiTextHandler      = FindObjectOfType <GUITextHandler>();
        hitPool             = GameObject.FindGameObjectWithTag("HitPool").GetComponent <EffectPool>();
        killPool            = GameObject.FindGameObjectWithTag("KillPool").GetComponent <EffectPool>();
        playerController    = FindObjectOfType <PlayerController>();
        playerHandler       = FindObjectOfType <PlayerHandler>();
    }