Exemplo n.º 1
0
 public override void Update()
 {
     if (isDisapear)
     {
         disapearTimer.Update();
         if (disapearTimer.IsTime)
         {
             CreatEffect();
             entity.DeActive();
         }
     }
     else
     {
         if (collider.IsThrough("Squirrel"))
         {
             isDisapear = true;
             C_Energy childHP = (C_Energy)collider.GetOtherEntity("Squirrel").GetNormalComponent("C_Energy");
             childHP.Heal(childHP.GetLimitEnery());
             drawComp.SetShaderOn(disapearTimer.GetLimitTime() + 0.1f, "A_Apple_Idle", "ShadeMask_Circle");
             drawComp.SetShaderCreatment(false);
         }
     }
 }