浏览代码

fix Awake warning

/main
fzhangtj 6 年前
当前提交
2a5494d4
共有 4 个文件被更改,包括 8 次插入4 次删除
  1. 3
      README.md
  2. 3
      Samples/UIWidgetSample/MaterialSample.cs
  3. 3
      Samples/UIWidgetSample/txt/FontWeightStyle.cs
  4. 3
      Samples/UIWidgetsGallery/GalleryMain.cs

3
README.md


namespace UIWidgetsSample {
public class UIWidgetsExample : UIWidgetsPanel {
void Awake() {
protected override void Awake() {
base.Awake();
// Application.targetFrameRate = 60; // or higher if you want a smoother scrolling experience.
// if you want to use your own font or font icons.

3
Samples/UIWidgetSample/MaterialSample.cs


home: this.testCases[this.testCaseId]);
}
void Awake() {
protected override void Awake() {
base.Awake();
FontManager.instance.addFont(Resources.Load<Font>(path: "MaterialIcons-Regular"), "Material Icons");
}
}

3
Samples/UIWidgetSample/txt/FontWeightStyle.cs


namespace UIWidgetsSample {
public class FontWeightStyle : UIWidgetsSamplePanel {
void Awake() {
protected override void Awake() {
base.Awake();
// To run this sample, you need to download Roboto fonts and place them under Resources/Fonts folder
// Roboto fonts could be downloaded from google website
// https://fonts.google.com/specimen/Roboto?selection.family=Roboto

3
Samples/UIWidgetsGallery/GalleryMain.cs


return new GalleryApp();
}
void Awake() {
protected override void Awake() {
base.Awake();
FontManager.instance.addFont(Resources.Load<Font>("MaterialIcons-Regular"), "Material Icons");
FontManager.instance.addFont(Resources.Load<Font>("GalleryIcons"), "GalleryIcons");
}
正在加载...
取消
保存