If I can’t apply my static variable in the editor than is there any other way to apply the texture2d fro my icon while its static?
Here’s the script:
using UnityEngine;
using System.Collections;
public class AllItems : MonoBehaviour
{
//ICONS
static public Texture2D macheteIcon;
public static void ItemsAndStats()
{
/////////////////////////////////
//WEAPONS
//GUNS
Weapon machete = new Weapon (10.0f, 0.0f, 3, false, 0, false);
machete.name = "Machete";
machete.description = "A fast bladed weapon";
machete.icon = macheteIcon;
machete.rarity = RarityType.Common;
machete.curDurability = 150.0f;
machete.maxDurability = 150.0f;
machete.weightAmount = 1;
//MELEE
//LASER
//BASIC RANGED
/////////////////////////////////
//CONSUMABLES
//FOOD
//LIQUID
//HEALTH
/////////////////////////////////
//ARMOR
//BASIC
//ADVANCED
/////////////////////////////////
//BUILDINGS
/////////////////////////////////
//STATIONS
//CRAFTING
//COOKING
//OTHER
/////////////////////////////////
//CONTAINERS
//BASIC
//LOCKED OR LARGE
}
}