Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        mainObj = GameObject.Find("balloon_main_obj");

        _scoreManager = mainObj.GetComponent <Score_Manager>();

        p_objFloat = transform.parent.gameObject.GetComponent <obj_float>();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        mainObj = GameObject.Find("balloon_main_obj");

        _scoreManager = mainObj.GetComponent <Score_Manager>();

        obj_trigger.GetComponent <CircleCollider2D>().enabled = false;

        p_objFloat = transform.parent.gameObject.GetComponent <obj_float>();
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        mainObj = GameObject.Find("balloon_main_obj");

        _scoreManager = mainObj.GetComponent <Score_Manager>();

        // Balloon_pr = GetComponent<Balloon_Parents>();

        p_objFloat = transform.parent.gameObject.GetComponent <obj_float>();
        GetComponent <CircleCollider2D>().enabled  = false;
        GetComponent <CapsuleCollider2D>().enabled = false;
    }