|
@@ -7,7 +7,8 @@ using UnityEngine;
|
|
using Utility;
|
|
using Utility;
|
|
using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventinterface;
|
|
using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventinterface;
|
|
using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventLogic;
|
|
using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventLogic;
|
|
-using Random = System.Random;
|
|
|
|
|
|
+using Random = UnityEngine.Random;
|
|
|
|
+
|
|
|
|
|
|
namespace CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic
|
|
namespace CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic
|
|
{
|
|
{
|
|
@@ -76,20 +77,21 @@ namespace CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic
|
|
|
|
|
|
public float SkillPreparationTime;
|
|
public float SkillPreparationTime;
|
|
|
|
|
|
- public Random Random
|
|
|
|
- {
|
|
|
|
- get
|
|
|
|
- {
|
|
|
|
- if (_random == null)
|
|
|
|
- {
|
|
|
|
- _random = new Random((int)Time.time);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return _random;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- private Random _random;
|
|
|
|
|
|
+ // public Random Random
|
|
|
|
+ // {
|
|
|
|
+ // get
|
|
|
|
+ // {
|
|
|
|
+ // if (_random == null)
|
|
|
|
+ // {
|
|
|
|
+ //
|
|
|
|
+ // _random = new Random((int)Time.time);
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // return _random;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // private Random _random;
|
|
|
|
|
|
private Map<int, Vector3> randomPos = new Map<int, Vector3>();
|
|
private Map<int, Vector3> randomPos = new Map<int, Vector3>();
|
|
// public void AddAssociationGroupBasics(TimeLineEventLogicGroupBasic timeLineEventLogicGroupBasic)
|
|
// public void AddAssociationGroupBasics(TimeLineEventLogicGroupBasic timeLineEventLogicGroupBasic)
|
|
@@ -213,7 +215,8 @@ namespace CombatLibrary.CombatLibrary.CombatCore.CustomizeTimeLogic.FxLogic
|
|
(min, max) = (max, min);
|
|
(min, max) = (max, min);
|
|
}
|
|
}
|
|
|
|
|
|
- return Random.Next((int)(min * 100), (int)(max * 100)) / 100f;
|
|
|
|
|
|
+
|
|
|
|
+ return Random.Range((int)(min * 100), (int)(max * 100)) / 100f;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|