Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ngb_yalta

Pages: [1]
1
Other Packages / Re: NGUI: HUD Text
« on: February 10, 2014, 05:14:46 AM »
return null Works the same...
I've tried this way
  1.         public GameObject enemy;
  2.         private bool show;
  3.  
  4.         void Update () {
  5.                 Debug.Log(show);
  6.                 if(show)
  7.                 {
  8.                         enemy.SendMessage("Damage", 15);
  9.                 }
  10.         }
  11.        
  12.         void EventCall()
  13.         {
  14.                 StartCoroutine("Damage");
  15.         }
  16.        
  17.         public IEnumerator Damage()
  18.         {
  19.                 show = true;
  20.                 yield return null;
  21.                 show = false;
  22.         }
  23.  
And again the same bug, what the heck  :'( no way to achieve hud text with animation call?

2
Other Packages / Re: NGUI: HUD Text
« on: February 09, 2014, 05:27:25 AM »
I've tried use coroutine, but got the same issue

Caller script:
  1. void EventCall()
  2.         {
  3.                 StartCoroutine("DoDamage");
  4.         }
  5.        
  6.        
  7.         IEnumerator DoDamage()
  8.         {
  9.                 yield return new WaitForSeconds(0f);
  10.                 enemy.SendMessage("Damage", 15);
  11.         }
  12.  

Receiver:
  1. public void Damage (float damage)
  2.         {
  3.                 if(Health > 0)
  4.                 {
  5.                         Health -= damage;
  6.                         ht.Add(damage.ToString(), Color.red, 0);
  7.                 }
  8.         }
  9.  

3
Other Packages / Re: NGUI: HUD Text
« on: February 07, 2014, 03:32:29 AM »
Got a strange flick bug, while calling HudText.Add() with Animation Event, some kind of flickering, any ideas?
Here is video:
Youtube link

Pages: [1]