MovingPlatformTriggerTarget

/**
 * Should be added to MovingPlatform. Starts the moving of the platform
 * when trigger is activated.
 */
using UnityEngine;
using System.Collections;

[RequireComponent(typeof(WaypointsMover))]
public class MovingPlatformTriggerTarget : SwitchTriggerTarget {
	public override void OnTriggerSwitch(bool on) {
		Debug.Log("Platform got trigger=" + on);
		GetComponent().enabled = on;
	}
}