private void Start() { if (GridSystem == null) { GridSystem = GetComponent <GridSystem>(); } _infGrid = (InfiniteHexGrid)GridSystem.Grid; }
private void Start() { _renderer = GetComponent <Renderer>(); _meshFilter = GetComponent <MeshFilter>(); if (GridSystem == null) { GridSystem = FindObjectOfType <GridSystem>(); } }
private void Awake() { _self = target as GridSystem; }