This file contains hidden or 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
function Rectangle(w, h) { | |
this.width = w; | |
this.height = h; | |
} | |
var Rect1 = new Rectangle(1, 2); |
This file contains hidden or 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
var calculator = { | |
operand1:1, | |
operand2:2, | |
compute: function() { | |
this.result = this.operand1 + this.operand2; | |
} | |
}; | |
calculator.compute(); | |
print(calculator.result); |
This file contains hidden or 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; | |
namespace Bhaptics.Tact.Unity | |
{ | |
public class FunctionTest : MonoBehaviour | |
{ | |
// Use this for initialization |
This file contains hidden or 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 UnityEngine; | |
namespace Bhaptics.Tact.Unity | |
{ | |
public class TactReceiver : MonoBehaviour | |
{ | |
public PositionTag PositionTag = PositionTag.Body; | |
public bool IsActive = true; | |
void OnTriggerEnter(Collider bullet) |