示例#1
0
    // 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>();
    }
示例#2
0
    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>();
     }
 }
示例#4
0
 public void Redo()
 {
     foreach (var strokeId in StrokeIds)
     {
         var stroke = StrokeManager.CloneAndUpdateStroke(strokeId);
         InkStrokeContainer.AddStroke(stroke);
     }
 }
示例#5
0
        public void Undo()
        {
            foreach (var strokeId in StrokeIds)
            {
                var stroke = StrokeManager.GetStroke(strokeId);
                stroke.Selected = true;
            }

            InkStrokeContainer.DeleteSelected();
        }
示例#6
0
    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;
    }
示例#8
0
 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;
 }
示例#9
0
    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);
    }
示例#10
0
 void Start()
 {
     ScoreManager  = GameObject.FindObjectOfType <ScoreManager>();
     StrokeManager = GameObject.FindObjectOfType <StrokeManager>();
 }
示例#11
0
 void Start()
 {
     camera   = GetComponent <Camera>();
     Instance = this;
 }
示例#12
0
 void Start()
 {
     StrokeManager       = GameObject.FindObjectOfType <StrokeManager>();
     PlayerBallTransform = GameObject.FindGameObjectWithTag("Player").transform;
 }
示例#13
0
 // Start is called before the first frame update
 void Start()
 {
     StrokeManager = GameObject.FindObjectOfType <StrokeManager>();
     image         = GetComponent <Image>();
 }
示例#14
0
 public LocalPlayerMoving(int playerId, PlayerBall playerBall, float strokeAngle)
 {
     PlayerId = playerId;
     Manager  = new StrokeManager(playerBall, strokeAngle);
 }