Beispiel #1
0
    void Start()
    {
        arm  = GameObject.Find("Crane Hand 2.1").transform;
        hand = GameObject.Find("Hand").transform;
        cam  = GameObject.Find("Main Camera");

        ip    = GameObject.Find("input_dashboard").GetComponent <inputProsessor>();
        rb    = Dog.GetComponent <Rigidbody2D>();
        audio = GetComponent <AudioSource>();
    }
Beispiel #2
0
    void Start()
    {
        Dog = GameObject.Find("bubble");
        rb  = Dog.GetComponent <Rigidbody2D>();

        //GetComponent<BoxCollider2D>().i

        ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>();

        basePosition  = transform.Find("CannonBase").transform;
        shootPosition = transform.Find("CannonBase/Cannon/CannonHead").transform;

        audio = GetComponent <AudioSource>();
    }
Beispiel #3
0
    void Start()
    {
        bubble = GameObject.Find("bubble");
        rb     = bubble.GetComponent <Rigidbody2D>();
        ip     = GameObject.Find("input_dashboard").GetComponent <inputProsessor>();

        checkPoints = new GameObject[numberOfCheckPoints];

        for (int i = 0; i < numberOfCheckPoints; i++)
        {
            checkPoints[i] = GameObject.Find("c" + i.ToString());
        }

        progress = 0;
        timer    = 0;
        audio    = GetComponent <AudioSource>();
    }
Beispiel #4
0
    void Start()
    {
        ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>();

        chooser = ip.gender;
        boy     = GameObject.Find("BoyDog");
        girl    = GameObject.Find("GirlDog");

        if (chooser == 1)
        {
            boy.SetActive(true);
            girl.SetActive(false);
        }
        if (chooser == 2)
        {
            boy.SetActive(false);
            girl.SetActive(true);
        }
    }
Beispiel #5
0
    void Start()
    {
        ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>();

        audio = GetComponent <AudioSource>();
    }