Пример #1
0
    void Awake()
    {
        source = GetComponent <AudioSource>();

        GameObject bots = GameObject.Find("Rotating Bots");

        if (bots != null)
        {
            rotatingBots = bots.GetComponent <RotateBots>();
        }

        GameObject ol = GameObject.Find("HowToPlay Overlay");

        if (ol != null)
        {
            overlay         = ol.GetComponent <Image>();
            overlay.enabled = false;
        }

        images = new List <GameObject>();
        for (int i = 0; i < transform.childCount; i++)
        {
            images.Add(transform.GetChild(i).gameObject);
        }
        EnableSlide(-1);
        playing = false;
    }
Пример #2
0
    void Awake()
    {
        source = GetComponent<AudioSource>();

        GameObject bots = GameObject.Find("Rotating Bots");
        if (bots != null)
        {
            rotatingBots = bots.GetComponent<RotateBots>();
        }

        GameObject ol = GameObject.Find("HowToPlay Overlay");
        if (ol != null)
        {
            overlay = ol.GetComponent<Image>();
            overlay.enabled = false;
        }

        images = new List<GameObject>();
        for (int i = 0; i < transform.childCount; i++)
        {
            images.Add(transform.GetChild(i).gameObject);
        }
        EnableSlide(-1);
        playing = false;
    }