Пример #1
0
    // Use this for initialization
    void Start()
    {
        explosion      = GetComponent <ParticleSystem>();
        sphereCollider = GetComponent <SphereCollider>();
        sphereRender   = GetComponent <MeshRenderer>();

        scoreboard = GameObject.Find("Scoreboard");
        score      = scoreboard.GetComponent <Keep_Score>();
    }
Пример #2
0
    void Start()
    {
        GameObject levelControllerObject = GameObject.FindWithTag("LevelController");

        if (levelControllerObject != null)
        {
            keep_score = levelControllerObject.GetComponent <Keep_Score> ();
        }
        deathAudioSource = GameObject.FindGameObjectWithTag("DeathSoundSource").GetComponent <AudioSource> ();
    }