void Start() { createGroup = GameObject.Find("group button").GetComponent <createGroup>(); cam = GameObject.Find("Main Camera").GetComponent <Camera>(); Scroller = GameObject.Find("Scroller"); optionStuff = GameObject.Find("openOptionWindow").GetComponent <optionStuff>(); mode = GameObject.Find("MODE").GetComponent <modis>(); //move.rotation = square.rotation; //move.localScale = square.localScale; //move.position = square.position; square.Find("outline").gameObject.SetActive(true); square.GetComponent <BoxCollider2D>().enabled = true; if (square.tag == "goal" || square.tag == "water" || square.tag == "obstacle" || square.tag == "ground" || square.tag == "deko" || square.tag == "group") { tag_Player = false; alldots.rotation = square.rotation; unterschied = square.position - alldots.position; onea = square.transform.GetChild(0); twoa = square.transform.GetChild(1); threea = square.transform.GetChild(2); foura = square.transform.GetChild(3); if (square.tag == "group") { Bounds(); } one.position = onea.position; two.position = twoa.position; three.position = threea.position; four.position = foura.position; } else if (square.tag == "Player") { tag_Player = true; alldots.gameObject.SetActive(false); } }
void Start() { mode = GameObject.Find("MODE").GetComponent <modis>(); Scroller = GameObject.Find("Scroller"); optionStuff = GameObject.Find("openOptionWindow").GetComponent <optionStuff>(); }