Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject startTextObject = GameObject.Find("StartText");

        _startTextManager = startTextObject.GetComponent <StartTextManager>();
        Instantiate(gem, new Vector3(12, Random.Range(-1.0f, 5.0f), 0), Quaternion.identity);
        Instantiate(gem, new Vector3(24, Random.Range(-1.0f, 5.0f), 0), Quaternion.identity);
        print(this.transform.position);
    }
Example #2
0
    void Start()
    {
        GameObject startTextObject = GameObject.Find("StartText");

        _startTextManager = startTextObject.GetComponent <StartTextManager>();
    }