// Use this for initialization void Start() { instruction = GetComponent <Text>(); duckScore = GetComponent <Duck_Movement>(); if (instruction) { instruction.text = "Score: 0"; } }
void Start() { // This calls the Duck_Movement script to the variable duck. m_Duck = GetComponent <Duck_Movement>(); //Abhi's code cheatMode = m_Duck.m_GetGunNumber(); // Invokes the spawn method after 0.1f second. Invoke("spawn", 0.1f); }
void Start() { // This calls the Duck_Movement script to the variable duck. m_Duck = GetComponent <Duck_Movement>(); //Abhi's code cheatMode = m_Duck.m_GetGunNumber(); Debug.Log("Gun in Chiru: " + cheatMode); // Invokes the spawn method after 0.1f second. Invoke("spawn", 0.1f); //InvokeRepeating("RedduckSpawn", 5f, 5f); //InvokeRepeating("GreenduckSpawn", 3f, 4f); }
void reLoadGame() { Debug.Log("Reloaded"); Special_Enemy_Manager.replay = 1; // This calls the Duck_Movement script to the variable duck. m_Duck = GetComponent <Duck_Movement>(); maxDucks = 0; s_NoOfDucks = 0; //Abhi's code cheatMode = m_Duck.m_GetGunNumber(); // Invokes the spawn method after 0.1f second. Invoke("spawn", 0.1f); }
void Start() { duck = GetComponent <Duck_Movement>(); InvokeRepeating("Spawn", 0.1f, spawnTimeTest); }