コード例 #1
0
 protected override void Awake()
 {
     base.Awake();
     if (singleton == null)
     {
         singleton = this;
     }
     NumCards = Cards.Count;
 }
コード例 #2
0
 public void Setup()
 {
     if (singleton == null)
     {
         singleton = this;
     }
     this.StackName = "TreasureStack";
     this.Cards     = new List <GameObject>();
 }
コード例 #3
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        TreasureStack script = (TreasureStack)target;

        if (GUILayout.Button("Generate Deck"))
        {
            script.Test();
        }
    }
コード例 #4
0
    public override void OnInspectorGUI()
    {
        TreasureStack script = target as TreasureStack;

        if (GUILayout.Button("Generate Deck"))
        {
            script.EditorInit();
        }
        if (GUILayout.Button("Clear Deck"))
        {
            script.EditorClear();
        }

        DrawDefaultInspector();
    }