Пример #1
0
 void stopBeat()
 {
     player = GetComponent<PlayerMovement>();
     interval = player.getDelta();
     stateBeating = false;
     trackedTime = 0.0f;
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        player = GetComponent<PlayerMovement>();
        interval = player.getDelta();
        startBeat();
        animation.AddClip(aClip,"lighAnimation");
        if (interval < 1.0f) { // Make sure the interval isn't 0, or we'll be constantly playing the sound!

            Debug.LogError("Interval base must be at least 1.0!");

            disableScript = true;

        }
    }