void Start() { MyButton = GameObject.Find("Acelerator").GetComponent<Button>(); MyCreator = GameObject.Find("Creator").GetComponent<CreatorBlocks>(); isPressed = false; MyButton.interactable = false; }
void Start() { R1 = Mathf.FloorToInt(Random.Range(-1, 2)); R2 = Mathf.FloorToInt(Random.Range(-1, 2)); R3 = Mathf.FloorToInt(Random.Range(-1, 2)); if (R1 == 0) { R1 = 1; } if (R2 == 0) { R2 = -1; } if (R3 == 0) { R3 = 1; } CatchColor = GameObject.Find("Creator").GetComponent<CreatorBlocks>(); }
void Start() { lastPosition = transform.position; CouldPaint = false; R1 = Mathf.FloorToInt(Random.Range(-1, 2)); R2 = Mathf.FloorToInt(Random.Range(-1, 2)); R3 = Mathf.FloorToInt(Random.Range(-1, 2)); if (R1 == 0) { R1 = 1; } if (R2 == 0) { R2 = -1; } if (R3 == 0) { R3 = 1; } CatchColor = GameObject.Find("Creator").GetComponent<CreatorBlocks>(); }
void Start() { CatchColor = GameObject.Find("Creator").GetComponent<CreatorBlocks>(); }