// INITIALIZE // // override public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction sf, string mt) { base.Initialize(theOwnerBlueprint, sf, mt); isParticleStack = false; isVector3Stack = false; }
// INITIALIZE // // override public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction sf, string mt) { base.Initialize(theOwnerBlueprint, sf, mt); if (ownerBlueprint.ownerEmitter != null) { values = new Vector4[ownerBlueprint.ownerEmitter.particleIds.Length]; } isParticleStack = true; if (sf == AmpsHelpers.eStackFunction.Acceleration || sf == AmpsHelpers.eStackFunction.Velocity || sf == AmpsHelpers.eStackFunction.Position || sf == AmpsHelpers.eStackFunction.RotationRate || sf == AmpsHelpers.eStackFunction.Rotation || sf == AmpsHelpers.eStackFunction.Scale || sf == AmpsHelpers.eStackFunction.PivotOffset) { isVector3Stack = true; } else { isVector3Stack = false; } }
//============================================================================// #if UNITY_EDITOR // INITIALIZE // // virtual public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction theStackFunction, string theModuleType) { stackFunction = theStackFunction; name = AmpsHelpers.formatEnumString(theStackFunction.ToString()); moduleType = theModuleType; ownerBlueprint = theOwnerBlueprint; }
// SET DEFAULT COORD SYSTEM // // public void SetDefaultCoordSystem(AmpsHelpers.eStackFunction stackFunction) { if (stackFunction == AmpsHelpers.eStackFunction.Position || stackFunction == AmpsHelpers.eStackFunction.Rotation || stackFunction == AmpsHelpers.eStackFunction.Scale) { coordSystem = AmpsHelpers.eCoordSystems.Emitter; } }
// INITIALIZE // // override public void Initialize(AmpsBlueprint theOwnerBlueprint, AmpsHelpers.eStackFunction sf, string mt) { base.Initialize(theOwnerBlueprint, sf, mt); if (ownerBlueprint.ownerEmitter != null) { values = new float[ownerBlueprint.ownerEmitter.particleIds.Length]; } isParticleStack = true; isVector3Stack = false; }
// SET CONVERSION MODE // // public void SetConversionMode(AmpsHelpers.eStackFunction stackFunction) { if (stackFunction == AmpsHelpers.eStackFunction.Position) { coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsPosition; } else if (stackFunction == AmpsHelpers.eStackFunction.Rotation || stackFunction == AmpsHelpers.eStackFunction.RotationRate) { coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsRotation; } else if (stackFunction == AmpsHelpers.eStackFunction.Velocity || stackFunction == AmpsHelpers.eStackFunction.Acceleration) { coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsVelocity; } else if (stackFunction == AmpsHelpers.eStackFunction.Scale) { coordSystemConversionMode = BaseProperty.eCoordSystemConversionMode.AsScale; } }