void Start() { meInputManager = GameObject.Find("MEGameController").GetComponent <MEInputManager>(); background = transform.FindChild("SpriteHolder").FindChild("Background").GetComponent <SpriteRenderer>(); initialized = true; Player = _player; }
void Start() { inputManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <MEInputManager>(); backgroundSprite = GetComponent <SpriteRenderer>(); borderSprite = transform.FindChild("Hex Border").GetComponent <SpriteRenderer>(); terrainSprite = transform.FindChild("Terrain Sprite").GetComponent <SpriteRenderer>(); highlightSprite = transform.FindChild("Highlight").GetComponent <SpriteRenderer>(); initialized = true; TerrainSprite = _terrain; }