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
hello world! |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// | |
// This class takes care of a lot of stuff for you. | |
// | |
// 1. It initializes steam on startup. | |
// 2. It calls Update so you don't have to. | |
// 3. It disposes and shuts down Steam on 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
PLUGIN.companiesTypes = {} | |
local privatepolice = baseCompany:Create("police") | |
privatepolice.needs = {"TYPE_WEAPONS"} | |
privatepolice.provides = {"TYPE_PROTECTION"} | |
function privatepolice:New() | |
obj = {} | |
setmetatable(obj, self) | |
self.__index = self | |
return obj |
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
function get_all_channels_by_order(){ | |
var channels = [] | |
function process(err, result){ | |
channels = result | |
} | |
mysql_connection.connect() | |
var result2 = mysql_connection.query("SELECT * FROM channels ORDER BY listorder ASC", function(err, result){process(err, result)}) | |
mysql_connection.end() | |
console.log(channels) //this still returns an empty array :( |
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
try{ | |
window.AudioContext = window.AudioContext || window.webkitAudioContext | |
}catch(e){ | |
alert("Web audio API is not supported in this browser") | |
} | |
try{ | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia | |
var hasMicrophoneInput = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia) | |
}catch(e){ |