Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        pMovement     = PlexiObject.GetComponent <Sim_PlexiMovement>();
        ballTransform = ballObject.GetComponent <RectTransform>();

        originXPosition = ballTransform.position.x;     // Save initial position of the ball
        originYPosition = ballTransform.position.y;

        originX = pMovement.originXValue;
        originY = pMovement.originYValue;
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        cloneBalanceActivated    = Instantiate(activatedObject, buttonBalanceObject.transform.position, buttonBalanceObject.transform.rotation, buttonBalanceObject.transform);
        cloneBounceDeactivated   = Instantiate(deactivatedObject, buttonBounceObject.transform.position, buttonBounceObject.transform.rotation, buttonBounceObject.transform);
        cloneSquareDeactivated   = Instantiate(squareRedObject, buttonSquareObject.transform.position, buttonSquareObject.transform.rotation, buttonSquareObject.transform);
        cloneTriangleDeactivated = Instantiate(triangleRedObject, buttonTriangleObject.transform.position, buttonTriangleObject.transform.rotation, buttonTriangleObject.transform);

        bounceActivated   = false;
        balanceActivated  = true;
        squareActivated   = false;
        triangleActivated = false;

        simMovement = plexiObject.GetComponent <Sim_PlexiMovement>();
    }
Ejemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        cloneBalanceDeactivated  = Instantiate(deactivatedObject, buttonBalanceObject.transform.position, buttonBalanceObject.transform.rotation, buttonBalanceObject.transform);
        cloneBounceDeactivated   = Instantiate(deactivatedObject, buttonBounceObject.transform.position, buttonBounceObject.transform.rotation, buttonBounceObject.transform);
        cloneSquareDeactivated   = Instantiate(squareRedObject, buttonSquareObject.transform.position, buttonSquareObject.transform.rotation, buttonSquareObject.transform);
        cloneTriangleDeactivated = Instantiate(triangleRedObject, buttonTriangleObject.transform.position, buttonTriangleObject.transform.rotation, buttonTriangleObject.transform);
        cloneCircleDeactivated   = Instantiate(circleRedObject, buttonCircleObject.transform.position, buttonCircleObject.transform.rotation, buttonCircleObject.transform);

        bounceActivated   = false;
        balanceActivated  = false;
        squareActivated   = false;
        triangleActivated = false;
        circleActivated   = false;

        simMovement = plexiObject.GetComponent <Sim_PlexiMovement>();
        clientSide  = ClientObject.GetComponent <ClientSide>();

        clientSide.SendWithParameter("Desktop Client Initialized.");
    }