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 UnityEngine; | |
using System.Collections; | |
public class StreetLight : MonoBehaviour | |
{ | |
private bool state; | |
private bool blink; | |
private float stateTime; | |
private float blinkTime; | |
private float saveTime; |
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 UnityEngine; | |
using System.Collections; | |
public class CameraMovement : MonoBehaviour | |
{ | |
[Range(0.2f, 4f)] | |
public float speed = 1f; | |
void Update () | |
{ |
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
Unity Editor [version: Unity 5.3.5f1_960ebf59018a] | |
Unity.exe caused an Access Violation (0xc0000005) | |
in module Unity.exe at 0033:157c1720. | |
Error occurred at 2016-06-29_110434. | |
D:\Program Files (x86)\Unity_5_3_5\Editor\Unity.exe, run by gebruiker. | |
24% memory in use. | |
16312 MB physical memory [12274 MB free]. | |
18744 MB paging file [13054 MB free]. |
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 UnityEngine; | |
using System.Collections; | |
public class Main : MonoBehaviour | |
{ | |
void Start () | |
{ | |
CommandManager.registerCommand(onCommandLoadLevel, "load"); | |
} |
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 UnityEngine; | |
using System.Collections; | |
public class AIMovement : MonoBehaviour | |
{ | |
[SerializeField] private NavMeshAgent navMeshAgent; | |
public GameObject head; | |
public GameObject playerHead; |
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
Set oWMP = CreateObject("WMPlayer.OCX.7") | |
Set colCDROMs = oWMP.cdromCollection | |
For i = 0 To colCDROMs.count-1 | |
colCDROMs.item(i).eject | |
Next | |
oWMP.close |
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
int main () | |
{ | |
for( int a = 10; a < 20; a = a + 1 ) | |
{ | |
} | |
return 0; | |
} |
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 UnityEngine; | |
using UnityEngine.UI; | |
using System; | |
using System.Threading; | |
using System.Collections; | |
using System.Diagnostics; | |
public class Main : MonoBehaviour | |
{ | |
public System.Object comlock; |
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 Object ditIsEenLock = new Object(); | |
public void threadA() | |
{ | |
lock(ditIsEenLock) | |
{ | |
while(true) | |
{ | |
//endless loop | |
} |
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 UnityEngine; | |
using System; | |
using System.Threading; | |
using System.Collections; | |
public class Test : MonoBehaviour | |
{ | |
private Queue queueCalc; | |
private Queue queueMain; |