public void ChangePosPostButton() { if (PlusButton != null) { PlusButton.SetPosition(Random.Range(0, Screen.width), Random.Range(0, Screen.height)); } }
public void CreateRandomPostButton() { if(PlusButton == null) { PlusButton = new AN_PlusButton(PlusUrl, AN_PlusBtnSize.SIZE_STANDARD, AN_PlusBtnAnnotation.ANNOTATION_BUBBLE); PlusButton.SetPosition(Random.Range(0, Screen.width), Random.Range(0, Screen.height)); PlusButton.ButtonClicked += ButtonClicked; } }
public void CreateRandomPostButton() { if (PlusButton == null) { PlusButton = new AN_PlusButton(PlusUrl, AN_PlusBtnSize.SIZE_STANDARD, AN_PlusBtnAnnotation.ANNOTATION_BUBBLE); PlusButton.SetPosition(Random.Range(0, Screen.width), Random.Range(0, Screen.height)); PlusButton.ButtonClicked += ButtonClicked; } }