i am making an android based game, and i will have graphics ( like stars or something ) across the screen. how do i get the input variable when the player collects these stars ?
i was planning to attach them to the camera and display them at 2D textures and apply colliders to them. Then check for when the player touches the colliders. Would this be the right way ?
this has to do more with the Collider.OnTriggerEnter function this sends information soo in return you could do something with it ....an example(
// Destroy everything that enters the trigger function
OnTriggerEnter (other : Collider) {
Destroy(other.gameObject);
}
)
in turn you could make this code destroy the stars or whatever and send data to your camera to make them show up there hope this helps