Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Target : MonoBehaviour {
- float multiplier;
- public GameObject[] Thrusters;
- GameObject selectedThruster;
- void Start(){
- StartCoroutine (ThrusterActivator ());
- }
- void OnCollisionEnter(Collision col){
- /*if (col.gameObject.tag = "bullet") {
- multiplier =
- }*/
- }
- IEnumerator ThrusterActivator(){
- yield return new WaitForSeconds (Random.Range(2,4));
- selectedThruster = Thrusters [Random.Range (0, 7)];
- selectedThruster.SetActive (true);
- yield return new WaitForSeconds (2);
- selectedThruster.SetActive (false);
- StartCoroutine(ThrusterActivator());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement