Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- // Pickup types
- // - Speed increase
- // - Teleport
- // - Invert controls
- // - Add points
- public class Pickups : MonoBehaviour
- {
- public enum PickupType
- {
- AddPoints,
- Teleport,
- SpeedScaler,
- InvertControls,
- }
- public ParticleSystem _PS;
- public PickupType _Type = PickupType.AddPoints;
- public float _Strength;
- public void Pickup()
- {
- Instantiate(_PS, transform.position, Quaternion.identity);
- Destroy(gameObject);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement