hi all
in unity gui we coding :
for (int i = 9; i < 18; i++) {
if(GUI.Button(new Rect( 50*(i-3),
14,50,50),
new GUIContent(Resources.Load(SpellTexturePath+i.ToString())as Texture2D)))
{
if(_playerCombat._isReady)
_playerCombat.ShootArrow(i);
else
_playerCombat.RangeAttack(i);
}
}
i want similor code in when i want use ngui.
how can i implement code above with ngui?
thankful.