void Awake() { data = this; Time.timeScale = 1.5f; shooter = GameObject.Find("Shooter").GetComponent <m_Shooter>(); gameState = State.StartUp; AudioListener.volume = PlayerPrefs.GetInt("sound", 1); }
//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; }
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); } }