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 Sample | |
def array_change_all(v) | |
p 'value method start' | |
p v.object_id | |
v = [10, 2, 3] | |
p v.object_id | |
p 'value method end' | |
end | |
def array_change_one(v) | |
p 'value method start' |
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 UnityChanController : Photon.MonoBehaviour | |
{ | |
[Range(0.0f,10.0f)] | |
public float speed = 0.1f; | |
private Animator anim; | |
private float yRotate = 0.0f; |
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; | |
using UnityEngine.UI; | |
public class StreetViewImageLoader : MonoBehaviour | |
{ | |
public Material material; | |
private double heading = 0.0; | |
private double pitch = 0.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 System.Collections; | |
public class PlayerController : Photon.MonoBehaviour { | |
private Rigidbody rb; | |
private float speed = 100; | |
// Use this for initialization | |
void Start () { | |
rb = GetComponent<Rigidbody>(); |
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 PlayerController : Photon.MonoBehaviour { | |
private Rigidbody rb; | |
private float speed = 100; | |
// Use this for initialization | |
void Start () { | |
rb = GetComponent<Rigidbody>(); |
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 NetworkManager : Photon.MonoBehaviour { | |
void Start() | |
{ | |
//photonの初期設定 | |
PhotonNetwork.ConnectUsingSettings("v0.1"); | |
Debug.Log("Called"); |
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.IO; | |
using System.IO.Ports; | |
using System.Threading; | |
using UnityEngine; | |
public class Light_controll : MonoBehaviour | |
{ | |
private const string SERIAL_PORT = "COM6"; | |
private const int SERIAL_BAUD_RATE = 115200; |