private void LoadLocationInternal() { //Deactivate all the old objects m_InteractableObjectPool.DeactivateAll(); //Activate the new objects for (int i = 0; i < m_CurrentLocation.InteractableObjects.Count; ++i) { InteractableObjectAndTransformTuple tuple = m_CurrentLocation.InteractableObjects[i]; LoadInteractableObject(tuple); } if (LoadLocationEvent != null) { LoadLocationEvent(m_CurrentLocation); } //Enable / disable drawing if (m_DrawDetector != null) { m_DrawDetector.enabled = (m_CurrentLocation.AllowDrawing); } //Fade out again m_Fader.FadeOut(OnFadeOutComplete); }
public void CreateInteractableObject(InteractableObjectAndTransformTuple tuple) { CreateInteractableObject(tuple.Position, tuple.Data); }
public void LoadInteractableObject(InteractableObjectAndTransformTuple tuple) { LoadInteractableObject(tuple.Position, tuple.Data); }
public void Initialize(LocationManager locationManager, InteractableObjectAndTransformTuple tuple) { Initialize(locationManager, tuple.Position, tuple.Data); }
public void AddInteractableObject(InteractableObjectAndTransformTuple tuple) { m_InteractableObjects.Add(tuple); }