Ejemplo n.º 1
0
    //[group, index, x or y]
    void Start()
    {
        LoadAndGen();

        AnalyScreenShot ASS = GetComponent <AnalyScreenShot>();

        if (ASS != null && ASS.enabled)       //try to move map infront camera(in map creating page)

        {
            transform.position    = new Vector3(0, 0, 0);
            transform.eulerAngles = new Vector3(-59f, -26f, -90f);
            transform.localScale  = new Vector3(0.01f, 0.01f, 0.01f);
        }
    }
Ejemplo n.º 2
0
    public void LoadAndGenTest()
    {
        analy = GetComponent <AnalyScreenShot>();
        world = GetComponent <World>();

        colorMap   = analy.r_color_map;
        edge_group = analy.r_edge_group;
        cubMap     = analy.r_edge_map;


        StartCoroutine(GenMapBase());

        GenFloatingIsand();

        if (edge_group == null)
        {
            Debug.LogError("edgegroup not found");
        }
    }
Ejemplo n.º 3
0
    public void LoadAndGen()
    {
        analy = GetComponent <AnalyScreenShot>();
        world = GetComponent <World>();
        LoadDataFromF();
        if (colorMap != null && cubMap != null)
        {
            StartCoroutine(GenMapBase());
        }

        if (edge_group != null)
        {
            GenFloatingIsand();
        }

        if (edge_group == null)
        {
            Debug.LogError("edgegroup not found");
        }
    }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     AS = GetComponent <AnalyScreenShot>();
 }
	// Use this for initialization
	void Start () {
		AS = GetComponent<AnalyScreenShot>();
	}