Exemple #1
0
    void Start()
    {
        flipperBar   = FindObjectOfType <flipperBar>();
        rightFlipp   = FindObjectOfType <RightFlipp>();
        ballLauncher = FindObjectOfType <ballLauncher>();

        animator = GetComponent <Animator>();
    }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        BallLauncher = transform.parent.GetComponent <ballLauncher>();
        score        = FindObjectOfType <Score>();

        if (!BallLauncher)
        {
            Debug.Log("ERROR");
        }
    }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     ballLauncher = FindObjectOfType <ballLauncher>();
 }