Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        setChildsList();

        gameManager = GameObject.Find("Game").GetComponent <ShootTheBall>();
        setChildrensVarsInit();
        setAllTargetsColor();
        StartCoroutine(SetTarget());
    }
    // Use this for initialization
    void Start()
    {
        m_Renderer  = gameObject.GetComponent <Renderer>();
        gameManager = GameObject.Find("Game").GetComponent <ShootTheBall>();

        lookAt = GameObject.Find("ControlCamera");
        this.transform.LookAt(lookAt.transform);

        hitSound = this.GetComponent <AudioSource>();
    }