コード例 #1
0
        private void CreateAction()
        {
            if (m_actionTypeSelectedIndex >= GPActionManager.s_gpactionTypes.Length)
            {
                throw new System.Exception("Out of bound index");
            }

            System.Type actionType = GPActionManager.s_gpactionTypes[m_actionTypeSelectedIndex];

            m_handler.AddAction(actionType);
        }
コード例 #2
0
    private void CreateAction()
    {
        if (m_actionTypeSelectedIndex >= GPActionManager.s_gpactionTypes.Length)
        {
            throw new Exception("Out of bound index");
        }

        EventHandler handler = (EventHandler)target;

        System.Type actionType = GPActionManager.s_gpactionTypes[m_actionTypeSelectedIndex];

        handler.Action = handler.AddAction(actionType);
    }