コード例 #1
0
    void Start()
    {
        LastJumpTime       = 0;
        LastJumpButtonTime = 0;

        if (!Body)
        {
            Body = GetComponentInChildren <Rigidbody2D>();
        }

        Rythm               = FindObjectOfType <RythmController>();
        Rythm.OnAfterBeat  += OnAfterBeat;
        Rythm.OnAfterPause += OnAfterPause;

        Game         = FindObjectOfType <GameManager>();
        BeatFeedback = FindObjectOfType <BeatFeedback>();
    }
コード例 #2
0
 void Awake()
 {
     s = this;
 }