Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        // get all the objects we'll need for the cutscene
        ChefTony    = GameObject.Find("Chef Tony");
        James       = GameObject.Find("James");
        Daria       = GameObject.Find("Daria");
        Basketballs = GameObject.Find("Flying BBalls");
        ctanim      = ChefTony.GetComponent <Animator>();
        mus         = GameObject.Find("BGM").GetComponent <MusicPlayer>();

        balls = Basketballs.GetComponentsInChildren <Rigidbody2D>();

        stopTimer();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        // get all the objects we'll need for the cutscene
        ChefTony    = GameObject.Find("Chef Tony");
        James       = GameObject.Find("James");
        Basketballs = GameObject.Find("Flying BBalls");
        mus         = GameObject.Find("BGM").GetComponent <MusicPlayer>();

        balls     = Basketballs.GetComponentsInChildren <Rigidbody2D>();
        ballsAnim = Basketballs.GetComponentsInChildren <Animator>();

        //everyone is DEAD
        James.GetComponent <Animator>().SetInteger("HP", 0);
        ChefTony.GetComponent <Animator>().SetInteger("HP", 0);

        startTimer();
    }