1234567891011121314151617 |
- using UnityEngine;
- using System.Collections;
- /// <summary>
- /// This component is responsible for displaying a level end scenery which comes in on screen gradually.
- /// The gameObject is instantiated by the <code>Level</code> component at the appropriate time.
- /// It destroys itself when disabled, i.e. game over
- /// </summary>
- public class LevelEnd : MonoBehaviour
- {
- public float xOffset = 1600;
- void OnDisable()
- {
- Destroy(gameObject);
- }
- }
|