Beispiel #1
0
    void Awake()
    {
        //Creation of a new xmltest.GAIA_Parser
        xmltest.GAIA_Parser parser = new xmltest.GAIA_Parser();

        //Creation of a new Manager (with a GAIA_Parser)
        m_manager = new GAIA_Manager(parser);

        //Loads and parses all FSM files
        if (m_xmlFilesFSM != null)
        {
            for (int i = 0; i < m_xmlFilesFSM.Length; i++)
            {
                m_manager.addFSM(m_xmlFilesFSM[i].text);
            }
        }

#if (PANDA)
        //Loads and parses all xml definitions of BTs
        if (m_xmlFilesBT != null)
        {
            for (int i = 0; i < m_xmlFilesBT.Length; i++)
            {
                m_manager.addBT(m_xmlFilesBT[i].text);
            }
        }
#endif
        parser.WriteLog("");
    }
 // Start is called before the first frame update
 void Start()
 {
     spinToWin        = false;
     frame            = 0;
     previousPosition = m_Rigidbody.transform.position;
     manager          = GAIA_Controller.INSTANCE.m_manager;
     #if (PANDA)
     manager.createBT(this.gameObject, BTFileName);
     #endif
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     manager = GAIA_Controller.INSTANCE.m_manager;
     FSM     = manager.createMachine(this, Tags.CLASSIC, "TankAIDeterministic");
     FSMevents.Add(Tags.UNKNOWN);
 }