|
@@ -41,7 +41,11 @@ namespace GameLogic.Combat.Hero.State
|
|
|
protected override void ProUpdate(float t)
|
|
protected override void ProUpdate(float t)
|
|
|
{
|
|
{
|
|
|
currTime += t*1.3f;
|
|
currTime += t*1.3f;
|
|
|
- loopFx.own.transform.position = Vector3.Lerp(stratPos, endpos, currTime);
|
|
|
|
|
|
|
+ if (loopFx != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ loopFx.own.transform.position = Vector3.Lerp(stratPos, endpos, currTime);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (currTime > 1)
|
|
if (currTime > 1)
|
|
|
{
|
|
{
|
|
|
combatHeroEntity.GameObject.SetActive(true);
|
|
combatHeroEntity.GameObject.SetActive(true);
|