public virtual TaskStatus OnUpdate() { SharedFloat storeResult = this.storeResult; Vector3 vector3 = this.vector3Variable.get_Value(); double sqrMagnitude = (double)((Vector3) ref vector3).get_sqrMagnitude(); storeResult.set_Value((float)sqrMagnitude); return((TaskStatus)2); }
public virtual TaskStatus OnUpdate() { SharedFloat storeResult = this.storeResult; Vector2 vector2 = this.vector2Variable.get_Value(); double magnitude = (double)((Vector2) ref vector2).get_magnitude(); storeResult.set_Value((float)magnitude); return((TaskStatus)2); }
public virtual TaskStatus OnUpdate() { if (Object.op_Equality((Object)this.particleSystem, (Object)null)) { Debug.LogWarning((object)"ParticleSystem is null"); return((TaskStatus)1); } SharedFloat storeResult = this.storeResult; ParticleSystem.MainModule main = this.particleSystem.get_main(); double duration = (double)((ParticleSystem.MainModule) ref main).get_duration(); storeResult.set_Value((float)duration); return((TaskStatus)2); }