How can I change wall tiles during play mode after some time for example if my wall is like this (|) now i want to change the wall after some time in play mode to this (\)?

Imagine playing pac man with changing walls. How can I change the walls during play mode?

try using the given method

startCoroutine