InfosPanelPlaceholder.cs 759 B

123456789101112131415161718192021222324
  1. // <copyright file="PlayerDetailsController.cs" company="Exit Games GmbH">
  2. // Part of: Pun Cockpit
  3. // </copyright>
  4. // <author>developer@exitgames.com</author>
  5. // --------------------------------------------------------------------------------------------------------------------
  6. using UnityEngine;
  7. namespace Photon.Pun.Demo.Cockpit
  8. {
  9. /// <summary>
  10. /// Infos panel placeholder. Defines the place where the infos panel should go. It will request InfoPanel when Component is enabled.
  11. /// </summary>
  12. public class InfosPanelPlaceholder : MonoBehaviour
  13. {
  14. public PunCockpit Manager;
  15. // Use this for initialization
  16. void OnEnable()
  17. {
  18. Manager.RequestInfosPanel(this.gameObject);
  19. }
  20. }
  21. }