Example #1
0
        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
        }
Example #2
0
 public void SetParent(EiEntity entity)
 {
     this.transform.SetParent(entity.transform);
 }
Example #3
0
 public static void Destroy(EiEntity entity)
 {
     entity.Destroy();
 }