export target variables and made a targetable interface
This commit is contained in:
@@ -29,8 +29,10 @@ public partial class PlayerUi : Control
|
||||
var (state, position) = targetProperties;
|
||||
|
||||
var visible = state != TargetState.NoTarget;
|
||||
var modulation = state == TargetState.TargetInRange ? new Color("ffffff") : new Color("fc001c");
|
||||
_enemyTarget.SetVisible(visible);
|
||||
_enemyTarget.SetPosition(position);
|
||||
_enemyTarget.SetPosition(position - _enemyTarget.Size / 2);
|
||||
_enemyTarget.SetModulate(modulation);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user