Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        PosStartRay = GameObject.Find("Sensor").transform.position;
        PosEndRay   = new Vector3(PosStartRay.x, PosStartRay.y, PosStartRay.z + 1);      //z軸方向を向けばなんでもいい

        RouletteStockManager = GameObject.Find("RouletteMasu").GetComponent <RouletteStockManager>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        PosStartRay = GameObject.Find("Sensor").transform.position;
        PosEndRay   = new Vector3(PosStartRay.x, PosStartRay.y + 0.2f, PosStartRay.z + 1);    //z軸方向を向けばなんでもいい
        //+0.2は親オブジェクトのCheckerのせいでずれる分を補正している

        SoundManager         = GameObject.Find("AudioPlayer").GetComponent <SoundManager>();
        RouletteStockManager = GameObject.Find("RouletteMasu").GetComponent <RouletteStockManager>();
    }