Exemple #1
0
        protected override async Task OnInitializedAsync()
        {
            await InitAsync();

            await OnAfterInitialized.InvokeAsync(this);

            await base.OnInitializedAsync();
        }
 /// <summary>
 /// Called when this instance is initialized by PoolingManager,
 /// but before Start or Awake is called.
 /// </summary>
 public virtual void AfterInitialized(PoolingManager manager)
 {
     SetPoolState(true);
     OnAfterInitialized?.Invoke(this, manager);
 }