You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

MapManager.cs 567 B

1234567891011121314151617181920212223242526
  1. using Protobuf;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class MapManager : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. private bool mapFinished;
  9. private MessageOfMap map;
  10. void Start()
  11. {
  12. mapFinished = false;
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. if (!mapFinished && MessageReceiver.map != null)
  18. {
  19. map = MessageReceiver.map;
  20. //Debug.Log("valid map");
  21. mapFinished = true;
  22. }
  23. }
  24. }