Exemplo n.º 1
0
        private void Start()
        {
            if (GridSystem == null)
            {
                GridSystem = GetComponent <GridSystem>();
            }

            _infGrid = (InfiniteHexGrid)GridSystem.Grid;
        }
Exemplo n.º 2
0
        private void Start()
        {
            _renderer   = GetComponent <Renderer>();
            _meshFilter = GetComponent <MeshFilter>();

            if (GridSystem == null)
            {
                GridSystem = FindObjectOfType <GridSystem>();
            }
        }
Exemplo n.º 3
0
 private void Awake()
 {
     _self = target as GridSystem;
 }