AudioList.Init C# (CSharp) Method

Init() public method

public Init ( ) : void
return void
	public void Init () {
		SubscribeEvents();
	}

Usage Example

	// Must be colled to setup the class's functionality
	void Init () {

		// Singleton method returns a bool depending on whether this object is the instance of the class
		if (SingletonUtil.TryInit (ref Instance, this, gameObject)) {
				
			loader = new AudioLoader (path);
			fileList = loader.Load ();
			fileList.Init ();

			InitFileDictionary (fileList);

			AddAudioEvents ();

			SubscribeEvents ();

			if (isAudioListener) {
				AddAudioListener ();
			}
			initCyclingAudio ();
	
		} else { 
			//this = Instance;
		}
	}