Example #1
0
    public void MoveOpponentPieceInGUI(string guiSpaceName)
    {
        GameObject  opponentMouse   = GameObject.Find("opponentMouse");
        GameObject  targetSquare    = GameObject.Find(guiSpaceName);
        ClickSquare clickSquare     = targetSquare.GetComponent <ClickSquare>();
        MoveMouse   moveMouseScript = opponentMouse.GetComponent <MoveMouse>();

        moveMouseScript.target             = new Vector3(clickSquare.transform.position.x, clickSquare.transform.position.y, -1f);
        opponentMouse.transform.localScale = new Vector3(opponentMouse.transform.localScale.x + .001f, opponentMouse.transform.localScale.y + .001f, opponentMouse.transform.localScale.z);
        //MoveMouse playerMoveMouseScript = GameObject.Find("playerMouse").GetComponent<MoveMouse>();
        //MoveArms playerMoveArmScript = GameObject.Find("ScientistArmOne").GetComponent<MoveArms>();

        moveMouseScript.moveMouse = true;
        soundEffectController.PlaySqueakSound();
        SwitchTurnIndicatorToLocal();
    }