Наследование: UnityEngine.MonoBehaviour
Пример #1
0
 public void SetPhysicsStep(int newInt)
 {
     if (m_dialModeBase == null)
     {
         m_dialModeBase = DialPhysics.GetComponent <DialModeBase>();
     }
     m_dialModeBase.CurrentStep = newInt;
 }
Пример #2
0
        void Awake()
        {
            if (m_dialModeBase == null)
            {
                m_dialModeBase = DialPhysics.GetComponent <DialModeBase> ();
            }

            if (m_dialModeBase == null)
            {
                throw new System.NullReferenceException("Could not find DialModeBase on DialPhysics Object.");
            }
        }