示例#1
0
    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;
        }
    }
示例#2
0
 void Start()
 {
     TheKingScript = FindObjectOfType <KingScript>();
 }