How would I grow plants based on time kind off like farming games? is it voxels?

How would I can I grow plants based on time kind off like farming games? sort of like thishttps://giphy.com/gifs/U5k5Nd1KLcqxa/html5 and Harvest moon. I got the models but I just dont know how to implement the code, Im sure it a voxel terrain

There are numerous ways. you could put a tall plant under the ground level and simply move it up…
or you could scale the leaves as well making the child objects of the stem etc. Of course you must white the code to make watered= true for my example code below… that would be on button press, or collision/ trigger enter etc.

var watered=false;
var x=0;
var y=.1;
var z=0;

if (watered=true)

transform.Translate(x,y,z);