protected override void Awake() { base.Awake(); if (singleton == null) { singleton = this; } NumCards = Cards.Count; }
public void Setup() { if (singleton == null) { singleton = this; } this.StackName = "TreasureStack"; this.Cards = new List <GameObject>(); }
public override void OnInspectorGUI() { DrawDefaultInspector(); TreasureStack script = (TreasureStack)target; if (GUILayout.Button("Generate Deck")) { script.Test(); } }
public override void OnInspectorGUI() { TreasureStack script = target as TreasureStack; if (GUILayout.Button("Generate Deck")) { script.EditorInit(); } if (GUILayout.Button("Clear Deck")) { script.EditorClear(); } DrawDefaultInspector(); }