private static void TitleChangeLoop() { // DateTime.Ticksの単位は100ナノ秒 var second = DateTime.Now.Ticks / (10 * 1000 * 1000); if (second < (lastUpdateTime + Interval)) { return; } lastUpdateTime = second; TitleChanger.TitleChange(); }
public void OnPreprocessBuild(BuildReport report) { // @todo アクティブなシーン名いれたい…けどまあいいや // title文字列設定 var titleChangeBehaviour = GameObject.FindObjectOfType <TitleChangeBehaviour> (); if (titleChangeBehaviour != null) { titleChangeBehaviour.Set( TitleChanger.TitleText(titleChangeBehaviour.buildName, $"build:{DateTime.Now.ToString ()}")); } }
void Start() { TitleChanger.TitleChange(titleText); }