SlotLanes.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="SlotLanes.cs" company="Exit Games GmbH">
  3. // Part of: Photon Unity Networking Demos
  4. // </copyright>
  5. // <summary>
  6. // Used in SlotRacer Demo
  7. // </summary>
  8. // <author>developer@exitgames.com</author>
  9. // --------------------------------------------------------------------------------------------------------------------
  10. using UnityEngine;
  11. using Photon.Pun.Demo.SlotRacer.Utils;
  12. namespace Photon.Pun.Demo.SlotRacer
  13. {
  14. /// <summary>
  15. /// Define Slot lanes and grid positions placeholders.
  16. /// This is a convenient approach to visually define the lanes and their grid positions without any complicated editors and setup framework.
  17. /// </summary>
  18. public class SlotLanes : MonoBehaviour {
  19. /// <summary>
  20. /// Instance Pointer to access GridPositions
  21. /// </summary>
  22. public static SlotLanes Instance;
  23. /// <summary>
  24. /// The grid positions.
  25. /// </summary>
  26. public SplinePosition[] GridPositions;
  27. void Awake()
  28. {
  29. Instance = this;
  30. }
  31. }
  32. }