Example #1
0
	//makes port update when changing status
	private void updadeDoor(){
	
		for (int i = 0; i < itemBehaviourGameObject.transform.childCount; i++) {
			itemBehaviour = itemBehaviourGameObject.transform.GetChild (i).GetComponent<ItemBehaviour> ();			 
			itemBehaviour.updateDoor ("LOCALLY_CLOSED_DOOR");

		}
	}