コード例 #1
0
    private Vector3 logicalPosition; // position of the Die that ignores animation

    void Start()
    {
        metronome.GetComponent <Metronome>().AddLateObserver(this);
        dieModel        = new DieModel();
        currentSide     = dieModel.Sides[Side.Back];
        audioController = GetComponentInChildren <DieAudioController>();
        logicalPosition = transform.position;
    }
コード例 #2
0
 void Awake()
 {
     Metronome.OnTick += OnTick;
     animator          = GetComponent <Animator>();
     audioSource       = m.GetComponent <AudioSource>();
 }