Search Unity

raycast problem (or any other solution)

Discussion in 'Scripting' started by GodOfMagic, Aug 20, 2014.

  1. GodOfMagic

    GodOfMagic

    Joined:
    Mar 25, 2014
    Posts:
    34
    Hi,
    I want to display enemy's stats on my GUI when I'm looking at it.
    I don't want to display enemy's HP above it because when I'm near him I can't see it.

    I think that enemy can somehow 'feel' raycast and find out it's source and send message to it with his stats. Any ideas? Or other solutions?
     
  2. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702