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> (); }
// 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!"); } }