AquaSphereMini.Shrimp.OnDisable C# (CSharp) Method

OnDisable() public method

public OnDisable ( ) : void
return void
	void OnDisable()
	{
		GameManager.Instance.RemoveEventHandler(
			"CHARACTER", ProcessCharacterEvent);

		if(GetComponent<Animation>() != null && 
		   GetComponent<Animation>().isPlaying)
		{
			GetComponent<Animation>().Stop();
		}
	}