void Awake() { //accesses the location of white pieces whitePieces = GameObject.Find("White Pieces").GetComponent<whitePieceTracker>(); //accesses the locations of black pieces blackPieces = GameObject.Find("Black Pieces").GetComponent<blackPieceTracker>(); upgradeControl = GameObject.Find("Alpha Upgrader").GetComponent<alphaUpgradeSelector>(); boardTiles = GameObject.Find("BoardCreator").GetComponent<boardCreationScript>(); //accesses the tile locations coordinates = gameObject.GetComponent<boardCreationScript>(); }
// Use this for initialization void Start() { upgradeControl = GameObject.Find("Alpha Upgrader").GetComponent<alphaUpgradeSelector>(); }