void Start() { //Gets scripts off of player script = plane.GetComponent<ScriptEnabler>(); buttonScript = player.GetComponent<ButtonRoom>(); }
// Use this for initialization void Start() { //Gets script off of a plane scriptEnabler = plane.GetComponent<ScriptEnabler>(); }