Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        player    = FindObjectOfType <MovementSoc>();
        Box       = FindObjectOfType <TextBoxManager>();
        walk      = FindObjectOfType <StopWalk>();
        timeStamp = Time.time + coolDown;
        Button2.SetActive(false);
        Button3.SetActive(false);

        GetComponent <AudioSource>().playOnAwake = false;
        GetComponent <AudioSource>().clip        = saw;
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        player = FindObjectOfType <MovementSoc>();
        ball   = FindObjectOfType <SoccerBall>();

        if (textfile != null)
        {
            textLines = (textfile.text.Split('\n'));
        }
        if (endAtLine == 0)
        {
            endAtLine = textLines.Length - 1;
        }
        if (isActive)
        {
            EnableTextBox();
        }
        else
        {
            DisableTextBox();
        }
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     mo   = FindObjectOfType <MovementSoc>();
     anim = GetComponent <Animator>();
 }