// Use this for initialization void Start() { dataIndex = 0; wordIndex = 0; hSortKey = 0; vSortKey = 0; dSortKey = 0; mouseAttractorKey = 0; mouseAttractorKey2 = 0; scaleUp = GetComponent <AttractorScaleUp>(); avoidScale = GetComponent <AttractorAvoidScale>(); avoid = GetComponent <AttractorAvoid>(); hSort = GetComponent <AttractorHorizontalSort>(); vSort = GetComponent <AttractorVerticalSort>(); scaleUpMouse = GetComponent <AttractorScaleUpMouse>(); frame = GetComponent <AttractorFrame>(); color = GetComponent <AttractorColor>(); keyword = GetComponent <AttractorKeyword>(); language = GetComponent <AttractorLanguage>(); adjustScale = GetComponent <AttractorAdjustScale>(); stroke = GetComponent <StrokeManager>(); CWL = GetComponent <CreateWallLabel>(); }
void Start() { CamereOffsetX = new Vector3(0, height, distance); CamereOffsetY = new Vector3(0, 0, distance); StrokeManager = GameObject.FindObjectOfType <StrokeManager>(); }
void Update() { if (GameObject.FindGameObjectWithTag("StrokeManager")) { sm = GameObject.FindGameObjectWithTag("StrokeManager").GetComponent <StrokeManager>(); } }
public void Redo() { foreach (var strokeId in StrokeIds) { var stroke = StrokeManager.CloneAndUpdateStroke(strokeId); InkStrokeContainer.AddStroke(stroke); } }
public void Undo() { foreach (var strokeId in StrokeIds) { var stroke = StrokeManager.GetStroke(strokeId); stroke.Selected = true; } InkStrokeContainer.DeleteSelected(); }
void Start() { inventory = GetComponent <Inventory>(); strokeManager = GameObject.Find("Stroke Manager") .GetComponent <StrokeManager>(); animator = GetComponent <Animator>(); spriteRenderer = GetComponent <SpriteRenderer>(); StartCoroutine(PauseBeforePlay()); }
private void Reset() { pointerDown = false; pointerDownTimer = 0; //pressColor.color = Color.yellow; StrokeManager = GameObject.FindObjectOfType <StrokeManager>(); StrokeManager.arRightIsPressed = false; StrokeManager.arLeftIsPressed = false; }
void Start() { winText.text = " "; restartText.text = " "; ball.transform.position = ball.transform.position = new Vector3(startMats[levelNum].transform.position.x, startMats[levelNum].transform.position.y + 1f, startMats[levelNum].transform.position.z); holeText.text = "Practice Round"; parText.text = "Par: ---"; scoreText.text = "Total Score: 0"; totalScoreText.text = " "; StrokeManager = GameObject.FindObjectOfType <StrokeManager>(); endGame = false; restart = false; }
public bool AllReset() { PhotoManager pm = gameObject.GetComponent <PhotoManager>(); pm.hSortKey = 0; pm.vSortKey = 0; pm.dSortKey = 0; pm.sSortKey = 0; if (xAxisBar.activeSelf) { buttonX.GetComponent <SortButton>().deselectButton.GetComponent <DeselectButton>().OnButtonClick(); } if (yAxisBar.activeSelf) { buttonY.GetComponent <SortButton>().deselectButton.GetComponent <DeselectButton>().OnButtonClick(); } if (zAxisBar.activeSelf) { buttonZ.GetComponent <SortButton>().deselectButton.GetComponent <DeselectButton>().OnButtonClick(); } if (sAxisBar.activeSelf) { buttonS.GetComponent <SortButton>().deselectButton.GetComponent <DeselectButton>().ResetAttractor(SortButton.axes.S); buttonS.GetComponent <SortButton>().deselectButton.GetComponent <DeselectButton>().ResetAxisBar(SortButton.axes.S); } StrokeManager sm = gameObject.GetComponent <StrokeManager>(); for (int i = sm.strokes.Count - 1; i > -1; i--) { Destroy(sm.strokes[i].inputField); Destroy(sm.strokes[i].gameObject); } sm.strokes.Clear(); if ((SystemManager.pointingState & SystemManager.PointingState.VENN) == SystemManager.PointingState.VENN) { SystemManager.pointingState = ~SystemManager.PointingState.VENN & SystemManager.pointingState; SystemManager.pointingState |= SystemManager.PointingState.POINTING; Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto); } return(true); }
void Start() { ScoreManager = GameObject.FindObjectOfType <ScoreManager>(); StrokeManager = GameObject.FindObjectOfType <StrokeManager>(); }
void Start() { camera = GetComponent <Camera>(); Instance = this; }
void Start() { StrokeManager = GameObject.FindObjectOfType <StrokeManager>(); PlayerBallTransform = GameObject.FindGameObjectWithTag("Player").transform; }
// Start is called before the first frame update void Start() { StrokeManager = GameObject.FindObjectOfType <StrokeManager>(); image = GetComponent <Image>(); }
public LocalPlayerMoving(int playerId, PlayerBall playerBall, float strokeAngle) { PlayerId = playerId; Manager = new StrokeManager(playerBall, strokeAngle); }