Category Archives: Scipts
Checking the Unity forums, “Alienchild” has supplied a fantastic script for a background music player… And here is a version in C# modified by RaskVann Advertisements
A basic script that allows you to place multiple spawn points in which a specified object will randomly chose a point to spawn from. Just ensure the object being spawned has a rigidbody.
STEPS: 1. Attach the script below to a GameObject with a RidgidBody and a Collider. 2. Change the “Size” variable in “Waypoints” to the number of waypoints you want to use. 3. Drop your waypoint objects on to the empty
The following script is something I have used in a prototype “Earth Defense” type game. It enables a Planet to have a cannon/gun that can fire in all directions at a predetermined tagged object. To set it up, here are