Skip to content

Instantly share code, notes, and snippets.

View westside's full-sized avatar

Sangwon Choi westside

View GitHub Profile
function Rectangle(w, h) {
this.width = w;
this.height = h;
}
var Rect1 = new Rectangle(1, 2);
var calculator = {
operand1:1,
operand2:2,
compute: function() {
this.result = this.operand1 + this.operand2;
}
};
calculator.compute();
print(calculator.result);
@westside
westside / PingTest.cs
Created January 9, 2019 08:11
Send ping
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bhaptics.Tact.Unity
{
public class FunctionTest : MonoBehaviour
{
// Use this for initialization
using UnityEngine;
namespace Bhaptics.Tact.Unity
{
public class TactReceiver : MonoBehaviour
{
public PositionTag PositionTag = PositionTag.Body;
public bool IsActive = true;
void OnTriggerEnter(Collider bullet)