void Start() { pipes = GameObject.Find("/Pipes"); drippingSounds = GetComponents <AudioSource>(); numberOfBrokenPipes = 0; progress = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ProgressOverview>(); BreakPipes(); }
void Start() { smallPieceCount = 3; width = gameObject.transform.localScale.z / smallPieceCount; depth = 0.03f; wallGrid = transform.parent.gameObject; progress = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ProgressOverview>(); sounds = GameObject.Find("/Sounds").GetComponents <AudioSource>(); }
void Start() { pipeColor = Resources.Load <Material>("PipeColor"); fixSound = GetComponent <AudioSource>(); progress = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ProgressOverview>(); }