除了充盈都做完了
This commit is contained in:
@@ -48,20 +48,20 @@ namespace Continentis.MainGame
|
||||
protected bool FindExistingSameBuff<T1, T2>(out T2 existingBuff, List<T1> buffList) where T1 : BuffBase<T> where T2 : BuffBase<T>
|
||||
{
|
||||
existingBuff = null;
|
||||
Debug.Log($"Searching for existing buff of type: {this.GetType()} in buff list of count: {buffList.Count}");
|
||||
//Debug.Log($"Searching for existing buff of type: {this.GetType()} in buff list of count: {buffList.Count}");
|
||||
foreach (T1 buff in buffList)
|
||||
{
|
||||
Debug.Log($"existing buff type: {buff.GetType().AssemblyQualifiedName}, this buff type: {this.GetType().AssemblyQualifiedName}");
|
||||
//Debug.Log($"existing buff type: {buff.GetType().AssemblyQualifiedName}, this buff type: {this.GetType().AssemblyQualifiedName}");
|
||||
if (buff.GetType() == this.GetType())
|
||||
{
|
||||
Debug.Log("Found existing buff of the same type.");
|
||||
//Debug.Log("Found existing buff of the same type.");
|
||||
existingBuff = buff as T2;
|
||||
Debug.Log(existingBuff == null);
|
||||
//Debug.Log(existingBuff == null);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Buff types do not match.");
|
||||
//Debug.Log("Buff types do not match.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user