Beyzanur Özen

  • Home
  • WfcGenerator Codes
  • ModuleSO Codes
  • EventManager Codes
  • Docs
  • PLAY GAME

CellSO Codes

  1. Doc
  2. Play / Test

    using System.Collections.Generic;
    using UnityEngine;
    
    [CreateAssetMenu(menuName = "WFC/CellSO")]
    public class CellSO : ScriptableObject 
    {
        public List modules = new List();
        [HideInInspector] public Vector3 cellPos;
        public bool isCollapsed = false;
        [HideInInspector] public int entropy = 0;
    
        public int Row { get; set; }
        public int Column { get; set; }
    
        private void OnDisable()
        {
            isCollapsed = false;
            entropy = 0;
        }
    }
    
© Copyright iPortfolio
Designed by BootstrapMade