public void Initialize(Player player, float offset, StatusBarController controller) { Player = player; _statusBarController = controller; _playerNumber.text = Player.Name; _playerNumber.color = Player.Color; _rectTransform.localScale = new Vector3 (1, 1); _rectTransform.anchoredPosition = new Vector2 (5.0f + offset, 0f); UpdateStats (); }
private void Awake() { Screen.fullScreen = false; StatusBarController.Show(); GuestLogin.onClick.AddListener(OnClickGuestLogin); Kakao.onClick.AddListener(OnClickKakaoLogin); WebViewClose.onClick.AddListener(OnClickWebViewClose); WebviewObj.gameObject.SetActive(false); Login_Button.onClick.AddListener(OnClickUserLogin); Create_Button.onClick.AddListener(OnClickUserCreate); }
public override void DidFinishLaunching(NSNotification notification) { // Insert code here to initialize your application storyboard = NSStoryboard.FromName("Main", null); controller = storyboard.InstantiateControllerWithIdentifier("PopupController") as ViewController; popover.ContentViewController = controller; popover.SetAppearance(NSAppearance.GetAppearance(NSAppearance.NameVibrantDark)); statusBar = new StatusBarController(popover, "StatusBarIcon.png"); //Registering the default settings loaded from the .plist file in the constructor NSUserDefaults.StandardUserDefaults.RegisterDefaults(defaultSettings); }
private void Awake() { SBController = this; bars = new List <StatusBar>[] { new List <StatusBar>(), new List <StatusBar>(), new List <StatusBar>(), new List <StatusBar>(), new List <StatusBar>() }; }
// Start is called before the first frame update void Start() { // ステータスバーを表示 StatusBarController.Show(); }