looks to me like you didn’t call the function
I added the script in the panel object.
Only certain functions are called automatically on scripts attached to objects. Start() at the beginning, Update() once per frame, FixedUpdate() every physics update. There are others. You'll need to call yourevive() from one of those.
I added the script in the panel object.
– ahnafshakib41Only certain functions are called automatically on scripts attached to objects. Start() at the beginning, Update() once per frame, FixedUpdate() every physics update. There are others. You'll need to call yourevive() from one of those.
– Idual