void Start() { audio = gameObject.GetComponent <AudioSource>(); laught = GameObject.Find("Laught").GetComponent <AudioSource>(); gostSwamps = GameObject.Find("Swamp").GetComponent <SwampScript>(); swampsController = GameObject.Find("Controller").GetComponent <SwampController>(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; controller = GameObject.Find("Controller").GetComponent <SwampController>(); }