m_Opponent = Instantiate(m_OpponentPrefab) as GameObject;
PathFollower pf = m_Opponent.GetComponent<PathFollower>();
这两句话是为了得到PathFollower.cs脚本;然而运行状态下却查看不到PathFollower.cs脚本附在m_Opponent上面;
最终发现附在m_Opponent上面的脚本Opponent.cs是PathFollower.cs的子类;因此可以通过GetComponent函数获得该脚本。