public void Debugger(GameObject go) { //Debug.Log("AAAA"); Debug.Log("Button State : " + ButtonState); if (this.name == "PlaceButton") { PosState = PosButtonType.PLACE; //Debug.Log("PPPP"); } else if (this.name == "DeleteButton") { PosState = PosButtonType.DELETE; //Debug.Log("DDDDDD"); } else if (this.name == "CancelButton") { PosState = PosButtonType.CANCEL; Debug.Log("CCCCCCCC"); } else if (this.name == "DoneButton") { PosState = PosButtonType.DONE; Debug.Log("DDDONE"); } print("State is " + PosState); //Debug.Log(go.name); //Pos = false; }
void Update() { //Debug.Log(/*this.name + */" button STATE is " + PosState); NowButtonState = ButtonState; LocalClear = ClearManager.GetComponent <ClearAll>().clear; //Debug.Log("LLLLL: " + LocalClear); if (LocalClear == true) { PosState = PosButtonType.CANCEL; } }