void Start() { shipEditorInstance = GetComponent <ShipEditor>(); InitializeMasterPanel(); foreach (var subPanel in subPanels) { InitSubPanel(subPanel); } }
public void Start() { ActiveItems = new List <GameObject>(); DanglingItems = new List <GameObject> (); if (instance) { Debug.LogWarning("More than one ShipEditor Instance"); return; } instance = this; }