Exemplo n.º 1
0
	void Start(){
		Time.timeScale = 0;

		tempSpeed = moveSpeed;
		tmpSpawnSeconds = spawnScript.spawnSeconds;
		tempSpawnPos = spawnScript.gameObject.transform.position;
		vortex = mainCamera.GetComponent<UnityStandardAssets.ImageEffects.Vortex> ();
		twirl = mainCamera.GetComponent<UnityStandardAssets.ImageEffects.Twirl> ();
	}
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        m_audioSource = GetComponent <AudioSource>();
        if (m_audioSource == null)
        {
            Debug.Log("m_audioSource not found!");
        }

        m_camVortex = GetComponent <UnityStandardAssets.ImageEffects.Vortex>();
        if (m_camVortex == null)
        {
            Debug.Log("m_camVortex not found!");
        }
    }