Hi everyone
I really hope you can help me with this its been annoying me for ages now and I’m sure it should be really straight forward.
Basically I want my character to jump onto the platform but only be allowed to stay there for a certain amount of time before the platform disappears.
This is the code I have.
using UnityEngine;
using System.Collections;
public class PickupScript : MonoBehaviour {
void OnTriggerEnter(Collider other){
if(other.gameObject.tag == "Island")
{
Destroy(other.gameObject);
}
}
}
btw I am complete noob at unity and c# coding so any help would be great!
thanks.