AIBehavior.GetCarryColor - notruilin/DeceptionGame GitHub Wiki

public int[] GetCarryColor();

Description

Returns the number of each counter. You may use it to get how many counters remain on the shuttle after last turn. Index 0, 1, 2 correspond to red, yellow and blue counters.

{1, 2, 1} means the shuttle carrys 1 red, 2 yellow and 1 blue counters.

public class AIAgent : MonoBehaviour
{
    public Actions MakeDecision()
    {
        int[] lastCarry = new int[3];
        lastCarry = GetComponent<AIBehavior>().GetCarryColor();
    }
}
⚠️ **GitHub.com Fallback** ⚠️