Beispiel #1
0
 void Start()
 {
     SoundManager.Instance.Init(true, true);
     KeyboardInputManager.Instance.Init();
     DebugConsole.Instance.Init();
     DebugConsole.AddVarToWatch("Index", this, "i");
     KeyboardInputManager.SubscribeToEvent(KeyCode.Space, KeyEventType.OnPressed, Play3DOneShot);
     //KeyboardInputManager.SubscribeToEvent(KeyCode.W, KeyEventType.OnPressed, Play3DOneShot);
     //KeyboardInputManager.SubscribeToEvent(KeyCode.W, KeyEventType.OnReleased, DebugTest);
 }