public TextAsset GetText(CharmDepth depth) { switch (depth) { case CharmDepth.normal: return(charmTexts[0]); case CharmDepth.hard: return(charmTexts[1]); case CharmDepth.dead: return(charmTexts[2]); default: return(null); } }
private void OnStepChange(int step) { if (step == 0) { Debug.Log("NeedleMove!"); shortNeedle.rotation = Quaternion.Euler(0, 0, 180); //6時スタート return; } /* * shortNeedle.rotation *= shortRotation; * longNeedle.rotation *= longRotation; */ longNeedle.rotation = Quaternion.Euler(0, 0, step * -360 / HOUR_PER_STEP); shortNeedle.rotation = Quaternion.Euler(0, 0, step * -360 / (HOUR_PER_STEP * 12) + 180); nowDepth = StepToCharmDepth(step); }