Skip to content

Instantly share code, notes, and snippets.

@dipayondip
dipayondip / TCPTestClient.cs
Created April 22, 2021 16:19 — forked from danielbierwirth/TCPTestClient.cs
TCP Client-Server Connection Example | Unity | C# | Bidirectional communication sample: Client can connect to server; Client can send and receive messages: Server accepts clients; Server reads client messages; Server sends messages to client
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
public class TCPTestClient : MonoBehaviour {
#region private members

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Shader "Custom/ParticlesUnlitDissolveAlpha"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_MaskTex ("DissolveTexture", 2D) = "white" {}
_Fade("Fade", Range(0,1)) = 0.2
_Speed("Speed", Range(-10,10)) = 1
}
@dipayondip
dipayondip / TrackTargets.cs
Created January 22, 2021 04:29 — forked from RyanNielson/TrackTargets.cs
A orthographic camera script for Unity that keeps all targets in frame by adjusting orthographic size and camera position.
using UnityEngine;
public class TrackTargets : MonoBehaviour {
[SerializeField]
Transform[] targets;
[SerializeField]
float boundingBoxPadding = 2f;