Ejemplo n.º 1
0
    void dropBallAnim(GameObject father, bool isInleftArea = true)
    {
        Object     obj  = PrefabLoader.loadFromUnPack("Ban/DropBall", false);
        GameObject ball = Instantiate(obj) as GameObject;

        RED.AddChildResvere(ball, father);

        if (isInleftArea)
        {
            ball.transform.eulerAngles = new Vector3(0f, 0f, 0f);
        }
        Core.Data.soundManager.SoundFxPlay(SoundFx.FX_DragonBeadDrop);
    }