1
This commit is contained in:
@@ -9,6 +9,8 @@ using BITKit.Entities;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine.Profiling;
|
||||
using UnityEngine.UIElements;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
// ReSharper disable RedundantTypeArgumentsOfMethod
|
||||
|
||||
namespace BITKit.Entities
|
||||
@@ -147,9 +149,9 @@ namespace BITKit.Entities
|
||||
}
|
||||
private void Awake()
|
||||
{
|
||||
if (Id.IsDefault())
|
||||
Id = GetInstanceID();
|
||||
CancellationToken = gameObject.GetCancellationTokenOnDestroy();
|
||||
if (Id is 0)
|
||||
Id = Guid.NewGuid().GetHashCode();
|
||||
CancellationToken = destroyCancellationToken;
|
||||
Set(CancellationToken);
|
||||
|
||||
if (useAwake)
|
||||
|
Reference in New Issue
Block a user