void Start() { platform = GetComponent <vp_MovingPlatform>(); if (State == null) { throw new MissingReferenceException("Missing ToggleState Reference"); } platform.GoTo(State.RuntimeValue); index = State.RuntimeValue; }
/// <summary> /// hooks up the MovingPlatform object to the inspector target /// </summary> public void OnEnable() { m_Component = (vp_MovingPlatform)target; }
/// <summary> /// hooks up the MovingPlatform object to the inspector target /// </summary> public void OnEnable() { m_Component = (vp_MovingPlatform)target; }