How to use `Action` with Unity C#?
If you want use only once then you can also use like System.Action<int>
function. But If you are using more than once in script then you should use Using System
.
The Action<T>
delegate type is defined in the System
namespace - make sure you have using System;
as a directive at the top of your CS file.