public void Initiolize() { AI_Depth = GameFieldSettingsPack.AIStepRate; army = GameFieldSettingsPack.AIArmy; aiKing = army == Army.White ? (KingScript)chessboard.kings[0] : (KingScript)chessboard.kings[1]; if (GameFieldSettingsPack.AISetting > 0) { AttackMulti = GameFieldSettingsPack.AISetting; } if (GameFieldSettingsPack.AISetting < 0) { ProtectMulti = GameFieldSettingsPack.AISetting; } }
void Start() { TheKingScript = FindObjectOfType <KingScript>(); }