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 CameraManager : MonoBehaviour { | |
float flySpeed = 10; | |
GameObject defaultCam; | |
GameObject playerObject; | |
bool isEnabled; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "geerlingguy/centos7" | |
config.vm.network :forwarded_port, guest: 80, host: 8000 | |
config.vm.provision :shell, path: "bootstrap.sh" | |
end |
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
実行ファイルのおいてある絶対パスは | |
path = require 'path' | |
path.dirname process.execPath | |
で得られる | |
ビルド後に外部ソースでrequire('nw.gui')などしたいときは、 | |
ビルド前スクリプトで事前にfs.readFileSyncなどでJavaScriptのソースを読み込んでevalしてやるようにすればよい。 | |
超危険だけど。 |
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!! |
NewerOlder