Example #1
0
    void Start()
    {
        gObj_Yamafuda_     = GameObject.Find("Yamafuda");
        gObj_TefudaPannel_ = GameObject.Find("Tefuda");
        gObj_IfContinue_   = GameObject.Find("IfContinue");

        gObj_Yamafuda_.SetActive(false);
        gObj_TefudaPannel_.SetActive(false);
        gObj_IfContinue_.SetActive(false);

        m_PlayerOperator_ = GameObject.Find("[PlayerOperator]").GetComponent <PlayerOperator>();

        EveryBodyDraw(5);
    }
Example #2
0
    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == (Tags.PLAYER))
        {
            _operatorController = other.GetComponent <PlayerOperator>();
            switch (typePickUp)
            {
            case 1:

                _operatorController.ChangeMoney(Random.Range(100, 150));
                Destroy(this.gameObject);
                break;
            }
        }
    }
 public void EnterKtv()
 {
     playerOperator = new PlayerOperator();
 }