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
class RotateFacingDirection : LogicalStateMachineBehaviour { | |
[SerializeField] private float _rotationSpeed = 10.0f; | |
... | |
} | |
class AimInFacingDirection : LogicalStateMachineBehaviour { | |
[SerializeField] private LayerMask _targetLayerMask; | |
void OnStateUpdate() { |
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; | |
using System.Collections; | |
using UnityEngine; | |
namespace DT { | |
/// <summary> | |
/// uses the semi-implicit euler method. faster, but not always stable. | |
/// see http://allenchou.net/2015/04/game-math-more-on-numeric-springing/ | |
/// </summary> | |
public class FloatSpring : MonoBehaviour { |
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
// Load the http module to create an http server. | |
var http = require('http'); | |
var fs = require('fs'); | |
var path = require("path"); | |
var url = require("url"); | |
var sys = require("sys"); | |
var qs = require('querystring'); | |
// Configure our HTTP server to respond with Hello World to all requests. | |
var server = http.createServer(function(request,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
public void printHist() { | |
235 int collisions = 0; | |
236 for(int i=0; i<defTable.length; i++) { | |
237 list.DList temp = defTable[i]; | |
238 list.DListNode tempy = (list.DListNode) temp.front(); | |
239 System.out.print("Entry " + i + ": [ "); | |
240 for(int j=0; j<temp.size(); j++) { | |
241 try { | |
242 System.out.print("*"); | |
243 tempy = (list.DListNode) tempy.next(); |
NewerOlder