virtual protected void Start() { _image = gameObject.GetComponent <UnityUI.Image>(); if (_image != null) { _defaultSprite = _image.sprite; } }
virtual protected void Start() { _toggled = true; SetToggle(_toggled); _buttonImage = this.gameObject.GetComponent <UnityUI.Image>(); if (_buttonImage) { _originalSprite = _buttonImage.sprite; } }