글

라벨이 Game Develope인 게시물 표시

[Unity} How to pop up multiple window with error message.

이미지
 1. I would like to pop error message window up.       Before I just use one designated 'Error Pop Up Window' and 'SetActive(true)' command.  2. But now I call multiple function with Delegate Chain. If I use only one pop up window and there are multiple error message in miltiple function, that will give me error in my life. So I figured out this "Hmm. Will I instantiate Pop Up window as prefab? " I did but Pop Up window instantiate where I can't see.     public void PopErrInstantiate()     {         GameObject childObject = Instantiate(popErrorPref) as GameObject;      } 3.Then let's make Pop Up window instantiate & let this be the child of main Canvas.      public void PopErrInstantiate(s)     {         GameObject childObject = Instantiate(popErrorPref) as GameObject;         childObject.transform.parent = Ui_ControlUi.BigCanvas.trans...

Balancing with Google Apps Script

이미지
I learned Google Apps Script for fun. My current task is balancing game. I use google spread sheet for balancing game. There are some calculation that can't be done only with functions in Google Spread Sheet. At that moment, Google Apps Script is very useful.  1. Use function with button  I wrote calculation that use random function. I wanted to refresh the result anytime I want to. But to click refresh button is not good. I found easy way. This way is using a Google Apps Script.    1) You put a button in spreadsheet.   2) Right click the button you made. Then choose 'allocate script'.  3) Allocate the function you write at a script editor. When doing this, just write the name of function. No '()' allowed.   4) You can write functions in Google Apps Script here.  Upper menu bar> Tool> Script Editor Ignore other code from 'act' function. All I wanted is 'flush' method. 'flush' method refresh every value that are linked to 'curr...