public void Set(AquaSphere.MODEL.C2000_Shrimp _model) { model = _model; UpdateState(); }
//------------------------------------------------------------------------------ // Use this for initialization 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(); }