// Use this for initialization void Start () { //m_ReadyToPeel = false; m_ReadyToSend = false; m_SendingPotato = false; //m_PeelAnimator = m_UnpeeledPotato.GetComponent<Animator>(); m_PeelAnimator.speed = 0; m_clientComm = GameObject.FindGameObjectWithTag ("Client").GetComponent<ClientSQLComm>(); m_PeelAnimator.GetBehaviour<TriggerEndOfPeel>().script = this; audioSource = gameObject.AddComponent<AudioSource>(); audioSource.clip = spawnSounds[ Random.Range(0, spawnSounds.Length-1)]; audioSource.Play( ); m_SpawnTimerCurrent = m_SpawnTimer; m_IsSpawning = true; transform.localScale = Vector3.zero; }
// Use this for initialization void Start() { //m_ReadyToPeel = false; m_ReadyToSend = false; m_SendingPotato = false; //m_PeelAnimator = m_UnpeeledPotato.GetComponent<Animator>(); m_PeelAnimator.speed = 0; m_clientComm = GameObject.FindGameObjectWithTag("Client").GetComponent <ClientSQLComm>(); m_PeelAnimator.GetBehaviour <TriggerEndOfPeel>().script = this; audioSource = gameObject.AddComponent <AudioSource>(); audioSource.clip = spawnSounds[Random.Range(0, spawnSounds.Length - 1)]; audioSource.Play( ); m_SpawnTimerCurrent = m_SpawnTimer; m_IsSpawning = true; transform.localScale = Vector3.zero; }