Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        StockSensorManagerInstance = GameObject.Find("StockSensor").GetComponent <StockSensorManager>();
        MyId  = StockSensorManagerInstance.GetMyId(this.gameObject.name);       //自分のインデックスをManagerに聞く
        MyJob = StockSensorManagerInstance.GetMyJob(this.gameObject.name);      //自分の役割をManagerに聞く

        PosStartRay = this.gameObject.transform.position;
        PosEndRay   = new Vector3(-1, 0, 0);      //x軸負方向を向けばなんでもいい
    }
Exemplo n.º 2
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>();
    }