void Start()
    {
        BM = GetComponent <botManager>();


        changeTarget();

        int cnt = ReasonAction.Length;

        Reason = new string[cnt];
        Action = new string[cnt];
        for (int i = 0; i < cnt; i++)
        {
            string[] splites = ReasonAction[i].Split('|');
            Reason[i] = splites[0];
            Action[i] = splites[1];
        }

        CompileReason(Reason);
        CompileAction(Action);


        #region debug Reason and Action

        for (int i = 0; i < ParamReason.GetLength(0); i++)
        {
            string DebugReason    = "Reason:";
            string DebugReasonMin = "ReasonMin:";
            string DebugReasonMax = "ReasonMax:";
            string DebugAction    = "Action:";

            for (int j = 0; j < ParamReason.GetLength(1); j++)
            {
                DebugReason    += ParamReason[i, j] + " ";
                DebugReasonMin += ParamReasonMin[i, j] + " ";
                DebugReasonMax += ParamReasonMax[i, j] + " ";
            }
            for (int j = 0; j < ParamAction.GetLength(1); j++)
            {
                DebugAction += ParamAction[i, j] + " ";
            }

            Debug.Log(DebugReason + " <=> " + DebugReasonMin + " <=> " + DebugReasonMax + " <=> " + DebugAction);
        }

        #endregion
    }
Ejemplo n.º 2
0
 public void _removeToBotManagerList(botManager BM)
 {
     BMS.Remove(BM);
 }
Ejemplo n.º 3
0
 public void _addToBotManagerList(botManager BM)
 {
     BMS.Add(BM);
 }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     allBots    = botManager.instance;
     levelTimer = ((float)allBots.bots.Length * allBots.botOrderTime) - 10f;
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     instance = this;
 }