2015-01-19

Source: Internet
Author: User

1. When the sound is played, if it is 2d sound, it can really sound very large, and full screen is the same, no space attenuation concept, but if it is 3d sound, there will be space concept, but the voice is too small

CNM, annoying, a music so sore

Look at the code, if it is 3d sound, the default is put into the Vector3.zero, changed the code, changed to the location of the skill release, but feel small. I want two ways, that is, the current camera has the focus of the time to activate the sound, or the way the vector, the current position along the axis of the screen, and then move forward or backward, the problem, a vector is known, how to move him along an axis or some direction, You can't just ask for a unit vector at the compute multiplier.

Find a way, or the background music sounds a little bit smaller

The final method is to turn the background music down and then turn the sound volume to 1.

2. Suddenly think of a problem, if let the class directly inherit Monobehavior, then this class want to initialize must hang on the empty object, this is not very good

Should be a common class, just a base class hanging on an empty object, all the things that need to inherit mono initialization, inherit this script

2015-01-19

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.