I want to have a delay between my animation

I have a game where passing over a square triggers an animation, and there are multiple squares with animations. However, all the squares trigger their animations at once instead of having a delay.

The example: Unity animation delay - YouTube

the code :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class tilesmoving : MonoBehaviour
    public Animator anim;

    private void OnTriggerEnter(Collider other) {



I think the problem is that I use on collider enter and on collider enter doesn’t refresh 60 times per second so if you know how, that would be great thanks!