Example #1
0
    private void spawnUFO()
    {
        float      yval    = rdHeight;
        Vector3    spawnPt = new Vector3(-spawnPtPad - (rdWidth / 2), yval, 0);
        GameObject go      = new GameObject();

        go.name = "UFO";
        go.transform.position = spawnPt;
        ufo = go.AddComponent <Ufo>();
        ufo.init(this, false);
    }