Esempio n. 1
0
    // Helpers to prevent action source files becoming bloated
    protected AIActionLink AddOutputLink(string name)
    {
        AIActionLink newLink = ScriptableObject.CreateInstance(typeof(AIActionLink)) as AIActionLink;

        newLink.linkName = name;

        m_outputLinks.Add(newLink);

        return(newLink);
    }
Esempio n. 2
0
    public override void Init()
    {
        AIActionData idleTimeData = ScriptableObject.CreateInstance(typeof(AIActionData)) as AIActionData;
        AIActionLink actionLink   = ScriptableObject.CreateInstance(typeof(AIActionLink)) as AIActionLink;

        actionLink.linkName = "idle_complete";


        idleTimeData.DataID   = "input_idle_time";
        idleTimeData.DataType = typeof(float).AssemblyQualifiedName;

        m_inputData.Add(idleTimeData);
        m_outputLinks.Add(actionLink);
    }
Esempio n. 3
0
    public override void Init()
    {
        AIActionData data0 = ScriptableObject.CreateInstance(typeof(AIActionData)) as AIActionData;
        AIActionData data1 = ScriptableObject.CreateInstance(typeof(AIActionData)) as AIActionData;

        data0.DataID             = "action_input";
        data0.BlackboardSourceID = "test_blackboard_id";
        data0.DataType           = typeof(float).AssemblyQualifiedName;

        data1.DataID             = "action_input1";
        data1.BlackboardSourceID = "test_blackboard_id1";
        data1.DataType           = typeof(float).AssemblyQualifiedName;

        m_inputData.Add(data0);
        m_inputData.Add(data1);
        m_outputData.Add(data1);

        AIActionLink link = ScriptableObject.CreateInstance(typeof(AIActionLink)) as AIActionLink;

        link.linkName = "complete";

        m_outputLinks.Add(link);

        /*
         * m_outputLinks.Add("thing");
         * m_outputLinks.Add("thing0");
         * m_outputLinks.Add("thing1");
         * m_outputLinks.Add("thing2");
         * m_outputLinks.Add("thing3");
         * m_outputLinks.Add("thing4");
         * m_outputLinks.Add("thing5");
         * m_outputLinks.Add("thing6");
         * m_outputLinks.Add("thing7");
         * m_outputLinks.Add("thing8");
         */
    }