// Use this for initialization
    void Start()
    {
        Cursor.SetCursor(cursorTexture, hotSpot, cursorMode);
        score = 0;

        waves = GetComponent<ArmyWaves>();
        previous = true;
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        // Securite
        if (resistance == 0) {
            resistance = 1;
        }

        GameObject kaijuObj = GameObject.Find("Kaiju");
        kaiju = kaijuObj.transform;
        state = STATE_MOVE;
        nextFire = -1;

        //  playerSound = gameObject.GetComponent<"AudioSource">();

        GameObject camera = GameObject.Find("Main Camera");
        waves = camera.GetComponent<ArmyWaves>();

        //  explosionKaiju = GameObject.Find("Explosion").GetComponent<KaijuHeadController>();

        distance = ((rangeMax - rangeMin) * (1f - Random.value) + rangeMin);
        minDist = waves.startDistance - 0.5f;
    }
    // Use this for initialization
    void Start()
    {
        line = gameObject.GetComponent<LineRenderer>();
        line.enabled = false;

        head = GameObject.Find("LaserOrientation").GetComponent<KaijuHeadController>();
        waves = GameObject.Find("Main Camera").GetComponent<ArmyWaves>();
        //  Cursor.visible = false;	//hide the cursor after placing it in the middle of the screen
    }