Пример #1
0
 // Use this for initialization
 void Start()
 {
     instruction = GetComponent <Text>();
     duckScore   = GetComponent <Duck_Movement>();
     if (instruction)
     {
         instruction.text = "Score: 0";
     }
 }
Пример #2
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);
    }
Пример #3
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();
        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);
    }
Пример #4
0
    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);
    }
Пример #5
0
 void Start()
 {
     duck = GetComponent <Duck_Movement>();
     InvokeRepeating("Spawn", 0.1f, spawnTimeTest);
 }