Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PickupRotate : MonoBehaviour
- {
- void OnTriggerEnter(Collider collider)
- {
- if (collider.gameObject.name == "Ship")
- gameObject.SetActive(false);
- }
- void Update()
- {
- transform.Rotate(new Vector3(0, -90, 0) * Time.deltaTime);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment