void Awake() { play = Instantiate(play); play.transform.position = Vector3.zero; play.transform.localScale = Vector3.one; shipCtr = play.GetComponent <ShipController> (); shipCtr.SetEditBgActive(false); SetHideOrShow(isShow); //BMP:Boss Main Panel ReceiveMessage("BMPCount", delegate(KeyValuesUpdate kv) { int type = (int)kv.Values; scroll.ShowItem(type); }); ReceiveMessage("BMPActive", delegate(KeyValuesUpdate kv) { bool active = ( bool)kv.Values; SetHideOrShow(active); }); ReceiveMessage("BMPSetPlayGridItem", delegate(KeyValuesUpdate kv) { string path = (string)kv.Values; shipCtr.SetSelet(path); }); ReceiveMessage("BMPSaveShip", delegate(KeyValuesUpdate kv) { // string path = (string)kv.Values; shipCtr.SaveData(); }); }