This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Fusion; | |
using Fusion.Sockets; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class FusionSpawner : MonoBehaviour, INetworkRunnerCallbacks | |
{ | |
public void OnPlayerJoined(NetworkRunner runner, PlayerRef player) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "MatthewShaders/NormalShader" | |
{ | |
Properties | |
{ | |
//Setting the default color to be green: | |
_MainTint ("Diffuse Tint", Color) = (0,1,0,1) | |
//"bump map" is a synonym for normal map- we are telling Unity that this will contain normal data: | |
_NormalTex ("Normal Map", 2D) = "bump" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "MatthewShaders/StandardDiffuse" | |
{ | |
Properties | |
{ | |
//Defining a property that will be used to set the Albedo for this material. | |
_Color ("Color", Color) = (1,1,1,1) | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Hello World Shader" | |
{ | |
Properties | |
{ | |
_Value("Value",Float) = 1.0 //Defines a custom float property called "Value" | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ | |
/[Uu]ser[Ss]ettings/ | |
/[Mm]emoryCaptures/ | |
/[Rr]ecordings/ | |
/[Aa]ssets/Plugins/Editor/JetBrains* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class JumpController : MonoBehaviour | |
{ | |
[SerializeField] private InputActionReference jumpActionReference; | |
[SerializeField] private float jumpForce = 500.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readFileSync } = require('fs'); | |
const { Client } = require('ssh2'); | |
const conn = new Client(); | |
conn.on('ready', () => { | |
console.log('CONNECTED! \n\n'); | |
conn.shell((err, stream) => { | |
if (err) throw err; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readFileSync } = require('fs'); | |
const { Client } = require('ssh2'); | |
const conn = new Client(); | |
conn.on('ready', () => { | |
console.log('CONNECTED! \n\n'); | |
//Run the "ls -la" command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [testData,setTestData] = useState({message : "abc"}); | |
useEffect(() => { | |
async function setData(){ | |
fetch('http://localhost:8080/test').then( | |
response => { response.json(); } | |
).then( | |
response => { setTestData(response); } | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [testData,setTestData] = useState({message : "abc"}); | |
useEffect(() => { | |
async function setData(){ | |
const response = await fetch('http://localhost:8080/test'); | |
const parsedData = await response.json(); | |
setTestData(parsedData); | |
setData(); | |
},[]); |
NewerOlder