示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        initPayout();

        CreditManagerInstance       = GameObject.Find("Main Camera").GetComponent <CreditManager>();
        BingoMasuControllerInstance = GameObject.Find("BingoMasu").GetComponent <BingoMasuController>();
        StopperManagerInstance      = GameObject.Find("Stopper").GetComponent <StopperManager>();
        StockSensorManagerInstance  = GameObject.Find("StockSensor").GetComponent <StockSensorManager>();
    }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        StopperManagerInstance      = GameObject.Find("Stopper").GetComponent <StopperManager>();
        BingoMasuControllerInstance = GameObject.Find("BingoMasu").GetComponent <BingoMasuController>();

        getUpperSensorObject();      //UpperSensorを変数に格納する
        for (int i = 0; i < 10; i++) //UpperSensorを無効にしておく(UpperSensorはUnderSensorがボールを検出しているときのみ有効化する)
        {
            UpperSensors[i].SetActive(false);
        }
    }