コード例 #1
0
 // This function switches the actual view behaviour to a split screen view behaviour...
 public void ChangeToSplitView()
 {
     // ...only if we are not already in a split behaviour!
     if (!(m_Behaviour.GetClass() == ViewBehaviour.E_VIEWCLASS.Split))
     {
         m_Behaviour = new SplitView(this, m_Target);
     }
 }
コード例 #2
0
 // This function switches the actual view behaviour to a single view behaviour...
 public void ChangeToSingleView()
 {
     // ...only if we are not already in a single view behaviour
     if (!(m_Behaviour.GetClass() == ViewBehaviour.E_VIEWCLASS.Single))
     {
         m_Behaviour = new SingleView(this, m_Target);
     }
 }
コード例 #3
0
        private ViewBehaviour m_Behaviour;              // The camera view behaviour

        private void Awake()
        {
            // Initialize our first game view
            m_Behaviour = new SingleView(this, m_Target);
        }