void Awake()
 {
     if (MapThreading.instance == null)
     {
         DontDestroyOnLoad(this.gameObject);
         MapThreading.instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
예제 #2
0
    private void Start()
    {
        mapThreading    = GetComponent <MapThreading>();
        camFarClipPlane = new Vector3(0f, 0f, Camera.main.farClipPlane);
        camTransform    = Camera.main.transform;
        drawTiles       = GetComponent <DrawTiles>();

        drawTiles.DrawTilesMap(0, 0, drawTiles.GetPlatformsToDraw());
        lastTileSet = drawTiles.GetLastPlatform();

        countdown = checkRate;
    }