Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEditor;
- using UnityEngine;
- public class IDSystem : MonoBehaviour
- {
- public List<CreatureBase> IDs = new List<CreatureBase>();
- CreatureBase creature;
- [SerializeField] CreatureBase testCreature;
- Beastiery bestiery;
- int creatureid;
- // Start is called before the first frame update
- void Start()
- {
- }
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.N))
- {
- addIDs(testCreature);
- }
- }
- public void addIDs(CreatureBase idtoAdd)
- {
- if (!IDs.Contains(idtoAdd))
- {
- IDs.Add(idtoAdd);
- creatureid = creature.ID;
- //bestiery.EnableEntryButton(1);
- }
- }
- }
Add Comment
Please, Sign In to add comment