| | | 1 | | using System.Collections; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Diagnostics.CodeAnalysis; |
| | | 4 | | using UnityEngine; |
| | | 5 | | using VRExplorer; |
| | | 6 | | |
| | | 7 | | public class Key : Collectible, ITriggerableEntity |
| | | 8 | | { |
| | | 9 | | #region Entity |
| | | 10 | | [ExcludeFromCodeCoverage] public float TriggeringTime => 0.05f; |
| | | 11 | | [ExcludeFromCodeCoverage] public string Name => Str.Button; |
| | | 12 | | |
| | | 13 | | [ExcludeFromCodeCoverage] |
| | | 14 | | public void Triggerred() |
| | | 15 | | { |
| | | 16 | | Collect(); |
| | | 17 | | } |
| | | 18 | | |
| | | 19 | | [ExcludeFromCodeCoverage] |
| | | 20 | | public void Triggerring() |
| | | 21 | | { |
| | | 22 | | } |
| | | 23 | | #endregion |
| | | 24 | | |
| | | 25 | | public Door door; |
| | | 26 | | |
| | | 27 | | |
| | | 28 | | // override parent collect method |
| | | 29 | | // to add door interation |
| | | 30 | | new public void Collect() |
| | 15 | 31 | | { |
| | 15 | 32 | | base.Collect(); |
| | 15 | 33 | | door.Unlock(); |
| | 15 | 34 | | } |
| | | 35 | | |
| | | 36 | | } |