ExampleBaseBehaviour.cs 314 B

123456789101112131415
  1. using UnityEngine;
  2. namespace Chronos.Example
  3. {
  4. // A base class that provides a shortcut
  5. // for accessing the timeline component.
  6. [RequireComponent(typeof(Timeline))]
  7. public abstract class ExampleBaseBehaviour : MonoBehaviour
  8. {
  9. public Timeline time
  10. {
  11. get { return GetComponent<Timeline>(); }
  12. }
  13. }
  14. }