Exemplo n.º 1
0
 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;
	}
Exemplo n.º 3
0
 /// <summary>
 /// hooks up the MovingPlatform object to the inspector target
 /// </summary>
 public void OnEnable()
 {
     m_Component = (vp_MovingPlatform)target;
 }