Exemplo n.º 1
0
 void Awake()
 {
     data                 = this;
     Time.timeScale       = 1.5f;
     shooter              = GameObject.Find("Shooter").GetComponent <m_Shooter>();
     gameState            = State.StartUp;
     AudioListener.volume = PlayerPrefs.GetInt("sound", 1);
 }
Exemplo n.º 2
0
    //m_TurnController turnController;

    void Start()
    {
        //turnController = GameObject.Find("TurnController").GetComponent<m_TurnController>();
        thisCamera = GetComponent <Camera>();
        shooter    = GameObject.Find("Shooter").GetComponent <m_Shooter>();
        basket     = GameObject.Find("ring").GetComponent <Transform>();
        extraMode  = false;
    }
Exemplo n.º 3
0
    void Start()
    {
        ring                   = GameObject.Find("ring");
        turnController         = GameObject.Find("TurnController").GetComponent <m_TurnController>();
        shooter                = GameObject.Find("Shooter").GetComponent <m_Shooter>();
        thisAudio              = GetComponent <AudioSource>();
        currentLocalBallsCount = currentRemoteBallsCount = startBallsCount;

        ResetData();
        FetchPlayerNames();


        if (PhotonNetwork.isMasterClient)
        {
            RandomPos = GetRandomPosInCollider();
            photonView.RPC("AssignRandomValue", PhotonTargets.All, RandomPos);
        }
    }