AquaSphereMini.Shrimp.OnEnable C# (CSharp) Method

OnEnable() public method

public OnEnable ( ) : void
return void
	void OnEnable() 
	{
		GameManager.Instance.RegisterEventHandler(
			"CHARACTER", ProcessCharacterEvent);
		
	    model = new AquaSphere.MODEL.C2000_Shrimp();
		model.Health = AquaSphere.MODEL.HealthType.HEALTHY;
		int healthSICK = (int) AquaSphere.MODEL.HealthType.HEALTHY;
		Debug.Log ("//////// --- AquaSphere.MODEL.HealthType.SICK : "+ healthSICK);

		view  = new AquaSphereMini.VIEW.Shrimp();
		view.Set(model);

		if(!GetComponent<Animation>().isPlaying)
		{
			GetComponent<Animation>().Play();
		}
		
		ExecuteAI();
	}