Ejemplo n.º 1
0
        public void SetUp()
        {
            var mockDoor = new GameObject();

            checkable = mockDoor.AddComponent <ClearanceCheckable>();
            checkable.SetCheckType(CheckType.Any);
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     directional           = GetComponent <Directional>();
     objectBehaviour       = GetComponent <ObjectBehaviour>();
     registerTile          = GetComponent <RegisterTile>();
     accessRestrictions    = GetComponent <AccessRestrictions>();
     clearanceCheckable    = GetComponent <ClearanceCheckable>();
     electricalNodeControl = GetComponent <ElectricalNodeControl>();
     spriteHandler         = GetComponentInChildren <SpriteHandler>();
 }
Ejemplo n.º 3
0
        private void Awake()
        {
            // ensure we have a net tab set up with the correct type
            // HasNetworkTab will open vendor UI by click if there is no object in active hand
            var hasNetTab = GetComponent <HasNetworkTab>();

            if (hasNetTab == null)
            {
                gameObject.AddComponent <HasNetworkTab>();
            }

            accessRestrictions = GetComponent <AccessRestrictions>();
            clearanceCheckable = GetComponent <ClearanceCheckable>();
        }
Ejemplo n.º 4
0
 protected override void Awake()
 {
     base.Awake();
     accessRestrictions = GetComponent <AccessRestrictions>();
     clearanceCheckable = GetComponent <ClearanceCheckable>();
 }
Ejemplo n.º 5
0
 private void Awake()
 {
     clearanceCheckable = GetComponent <ClearanceCheckable>();
 }