notfall.cs
using UnityEngine;
using System.Collections;
public class notfall : MonoBehaviour
{
void OnCollisionEnter(Collision col) {
if (col.gameObject.tag == "MoveStage") {
transform.SetParent(col.transform);
}
}
void OnCollisionExit(Collision col) {
if (col.gameObject.tag == "MoveStage") {
transform.SetParent(null);
}
}
}