//[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); } }
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"); } }
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"); } }
// Use this for initialization void Start() { AS = GetComponent <AnalyScreenShot>(); }
// Use this for initialization void Start () { AS = GetComponent<AnalyScreenShot>(); }