BattleMenu.LoadIcons C# (CSharp) Method

LoadIcons() public method

public LoadIcons ( ) : void
return void
    public void LoadIcons()
    {
        if(this.backIcon == null && "" != this.backIconName)
        {
            this.backIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.backIconName, typeof(Texture2D));
        }
        if(this.attackIcon == null && "" != this.attackIconName)
        {
            this.attackIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.attackIconName, typeof(Texture2D));
        }
        if(this.skillIcon == null && "" != this.skillIconName)
        {
            this.skillIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.skillIconName, typeof(Texture2D));
        }
        if(this.itemIcon == null && "" != this.itemIconName)
        {
            this.itemIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.itemIconName, typeof(Texture2D));
        }
        if(this.defendIcon == null && "" != this.defendIconName)
        {
            this.defendIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.defendIconName, typeof(Texture2D));
        }
        if(this.escapeIcon == null && "" != this.escapeIconName)
        {
            this.escapeIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.escapeIconName, typeof(Texture2D));
        }
        if(this.endTurnIcon == null && "" != this.endTurnIconName)
        {
            this.endTurnIcon = (Texture2D)Resources.Load(BattleSystemData.ICON_PATH+this.endTurnIconName, typeof(Texture2D));
        }
    }