void Start() { configSlot = GameObject.FindObjectOfType <configScript>(); slotX = configSlot.slotXInt; slotY = configSlot.slotYInt; CheckWidthHeight(); GenerateBoxPaintAtDino(); }
public void ShowMenu(configScript menu) { if (ConfigMenu != null) { ConfigMenu.IsOpen = false; } ConfigMenu = menu; ConfigMenu.IsOpen = true; }
public void CloseMenu(configScript menu) { if (ConfigMenu != null) { ConfigMenu.IsOpen = false; } ConfigMenu = menu; ConfigMenu.IsOpen = false; }
void Start() { configSlot = GameObject.FindObjectOfType <configScript>(); maxPixel = configSlot.maxPixel; Debug.Log("maxPixel" + maxPixel); allPaintPartDinohead = new int[maxPixel]; allPaintPartDinohandL = new int[maxPixel]; allPaintPartDinohandR = new int[maxPixel]; allPaintPartDinolegL = new int[maxPixel]; allPaintPartDinolegR = new int[maxPixel]; // Debug.Log("height and width :" + height + "and"+ width); ChangeTypePaint(typeDinosaurInt); _NetworkViewCommunicate = FindObjectOfType <NetworkController>(); }