private void Start(){
		m_CurrentDimensions = initialDimensions;	
		m_CurrentPlacedTileList = new Dictionary<int, Transform>();
		m_CurrentRecordedActions = new List<AGF_TileDataStruct>();
		
		m_TileListManager = GameObject.Find ("AGF_TileListManager").GetComponent<AGF_TileListManager>();
		GameObject obj = GameObject.Find ("Geovox_Integration").GetComponent<AGF_IntegrationManager>().customCodeManager;
//		print ( "Custom Code Manager = " + obj );
		if ( obj != null ){
			m_CustomCodeManager = obj.GetComponent<AGF_CustomCodeManager>();
		}
	}
	public override void Init( bool kinematicsEnabled, bool hasParent ){
		base.Init ( kinematicsEnabled, hasParent );
		
		m_CurrentPickupRotation = Random.Range (0f,360f);
		
		GameObject obj = GameObject.Find ("AGF_Integration").GetComponent<AGF_IntegrationManager>().customCodeManager;
		if ( obj != null ){
			m_CustomCodeManager = obj.GetComponent<AGF_CustomCodeManager>();
		}
		
		if ( this.GetComponent<Rigidbody>() != null ){
			this.GetComponent<Rigidbody>().sleepVelocity = 1.0f;
			this.GetComponent<Rigidbody>().sleepAngularVelocity = 1.0f;
		}
	}