public void SetPhysicsStep(int newInt) { if (m_dialModeBase == null) { m_dialModeBase = DialPhysics.GetComponent <DialModeBase>(); } m_dialModeBase.CurrentStep = newInt; }
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."); } }