void Awake() { kingdomData = this; data = DataScript.data; SetCastleState (false); castlesArray = castlesParent.GetComponentsInChildren<Castles>(true); for (int i = 0; i < castleCount; i++) { castlesArray[i].castleNumber = i+1; castlesArray[i].SetName ("Unnamed Castle"); } }
// Use this for initialization void Start() { guiInfo = GUIInfo.guiInfo; data = DataScript.data; kingdomData = KingdomDataScript.kingdomData; }