private void AttachComponentContextMenu() { entity = GetComponentInParent <EiEntity>(); #if EITRUM_NETWORKING netView = GetComponent <EiNetworkView> (); #endif AttachComponents(); #if UNITY_EDITOR if (gameObject.scene.isLoaded) { UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(gameObject.scene); } else { UnityEditor.EditorUtility.SetDirty(this); } #endif }
public void SetParent(EiEntity entity) { this.transform.SetParent(entity.transform); }
public static void Destroy(EiEntity entity) { entity.Destroy(); }