Exemplo n.º 1
0
    void Start()
    {
        pipes               = GameObject.Find("/Pipes");
        drippingSounds      = GetComponents <AudioSource>();
        numberOfBrokenPipes = 0;
        progress            = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ProgressOverview>();

        BreakPipes();
    }
Exemplo n.º 2
0
    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>();
    }
Exemplo n.º 3
0
 void Start()
 {
     pipeColor = Resources.Load <Material>("PipeColor");
     fixSound  = GetComponent <AudioSource>();
     progress  = GameObject.Find("/InfoCanvas/InfoText").GetComponent <ProgressOverview>();
 }