Search Unity

How to add small text (Perfect ... Great ! ...) when enemy dies

Discussion in 'Scripting' started by Goldenjay, Feb 19, 2020.

  1. Goldenjay

    Goldenjay

    Joined:
    Nov 11, 2019
    Posts:
    26
    Hi there,
    I'm new at unity3d and game developement , I made a simple 2d game , now , I wanna add some popup text when you kill many enemies in a short time ; for example ; you kill 5 ,in the 6th enemy you kill , a small text will appear and say : Perfect . at the 7th , it will say : Great ! ...
    I don't know how to do that , please help
    thanks
     
  2. unit_dev123

    unit_dev123

    Joined:
    Feb 10, 2020
    Posts:
    989
    use ui canvas and text and put counter in update func.
     
    Goldenjay likes this.
  3. Goldenjay

    Goldenjay

    Joined:
    Nov 11, 2019
    Posts:
    26
    thank you so much
     
  4. unit_dev123

    unit_dev123

    Joined:
    Feb 10, 2020
    Posts:
    989
    no worries