private void Start() { TLElasticA02 presetA = ScriptableObject.CreateInstance <TLElasticA02>(); presetA.singleTime = 2f; presetA.loopInterval = 1f; presetA.anchorOffset = new Vector2(0, -200); presetA.stiffness = stiffnessA; AddAnimatextComponent(textA, new Effect(presetA, generalParamGroup)); TLElasticA02 presetB = ScriptableObject.CreateInstance <TLElasticA02>(); presetB.singleTime = 2f; presetB.loopInterval = 1f; presetB.anchorOffset = new Vector2(0, -200); presetB.stiffness = stiffnessB; AddAnimatextComponent(textB, new Effect(presetB, generalParamGroup)); TLElasticA02 presetC = ScriptableObject.CreateInstance <TLElasticA02>(); presetC.singleTime = 2f; presetC.loopInterval = 1f; presetC.anchorOffset = new Vector2(0, -200); presetC.stiffness = stiffnessC; AddAnimatextComponent(textC, new Effect(presetC, generalParamGroup)); }
private void Start() { TCBasicA05 presetA1 = ScriptableObject.CreateInstance <TCBasicA05>(); presetA1.singleTime = 0.1f; presetA1.interval = 0.1f; presetA1.loopInterval = 1f; AddAnimatextComponent(textA1, new Effect(presetA1, generalParamGroup)); TWBasicA05 presetA2 = ScriptableObject.CreateInstance <TWBasicA05>(); presetA2.singleTime = 0.2f; presetA2.interval = 1f; presetA2.loopInterval = 1f; AddAnimatextComponent(textA2, new Effect(presetA2, generalParamGroup)); TLBasicA05 presetA3 = ScriptableObject.CreateInstance <TLBasicA05>(); presetA3.singleTime = 0.2f; presetA3.interval = 1.2f; presetA3.loopInterval = 2f; AddAnimatextComponent(textA3, new Effect(presetA3, generalParamGroup)); TGBasicA05 presetA4 = ScriptableObject.CreateInstance <TGBasicA05>(); presetA4.singleTime = 0.2f; presetA4.interval = 0.5f; presetA4.loopInterval = 1f; AddAnimatextComponent(textA4, new Effect(presetA4, generalParamGroup)); TLBasicA01 presetB1 = ScriptableObject.CreateInstance <TLBasicA01>(); presetB1.singleTime = 1.2f; presetB1.interval = 1.2f; presetB1.loopInterval = 1f; presetB1.position = new Vector2(0, 30); AddAnimatextComponent(textB1, new Effect(presetB1, generalParamGroup)); CLBasicA01 presetB2 = ScriptableObject.CreateInstance <CLBasicA01>(); presetB2.singleTime = 1.2f; presetB2.interval = 1.2f; presetB2.loopInterval = 1f; presetB2.position = new Vector2(0, 30); presetB2.continuousEasing = true; AddAnimatextComponent(textB2, new Effect(presetB2, generalParamGroup)); TLBasicA01 presetC1 = ScriptableObject.CreateInstance <TLBasicA01>(); presetC1.singleTime = 1.2f; presetC1.interval = 1.2f; presetC1.loopInterval = 1f; presetC1.position = new Vector2(0, 30); AddAnimatextComponent(textC1, new Effect(presetC1, generalParamGroup)); TLBounceA03 presetC2 = ScriptableObject.CreateInstance <TLBounceA03>(); presetC2.singleTime = 1.2f; presetC2.interval = 1.2f; presetC2.loopInterval = 1f; AddAnimatextComponent(textC2, new Effect(presetC2, generalParamGroup)); TLElasticA02 presetC3 = ScriptableObject.CreateInstance <TLElasticA02>(); presetC3.singleTime = 1.2f; presetC3.interval = 1.2f; presetC3.loopInterval = 1f; presetC3.rotation = 15; presetC3.stiffness = 3; AddAnimatextComponent(textC3, new Effect(presetC3, generalParamGroup)); }
private void Start() { TCElasticA02 A1 = ScriptableObject.CreateInstance <TCElasticA02>(); A1.singleTime = characterSingleTimeA; A1.easingType = easingTypeA; A1.fadeRange.end = fadeRangeEndValueA; A1.rotation = 90f; A1.anchorType = AnchorType.Top; A1.anchorOffset = Vector2.zero; A1.oscillations = 1; A1.stiffness = 2.5f; presetA1 = A1; TCElasticA02 A2 = ScriptableObject.CreateInstance <TCElasticA02>(); A2.singleTime = characterSingleTimeB; A2.easingType = easingTypeB; A2.fadeRange.end = fadeRangeEndValueB; A2.rotation = 90f; A2.anchorType = AnchorType.Bottom; A2.anchorOffset = Vector2.zero; A2.oscillations = 1; A2.stiffness = 2.5f; presetA2 = A2; TCElasticA02 A3 = ScriptableObject.CreateInstance <TCElasticA02>(); A3.singleTime = characterSingleTimeC; A3.easingType = easingTypeC; A3.fadeRange.end = fadeRangeEndValueC; A3.rotation = 90f; A3.anchorType = AnchorType.Right; A3.anchorOffset = Vector2.zero; A3.oscillations = 1; A3.stiffness = 2.5f; presetA3 = A3; TCElasticA02 A4 = ScriptableObject.CreateInstance <TCElasticA02>(); A4.singleTime = characterSingleTimeD; A4.easingType = easingTypeD; A4.fadeRange.end = fadeRangeEndValueD; A4.rotation = 90f; A4.anchorType = AnchorType.Left; A4.anchorOffset = Vector2.zero; A4.oscillations = 1; A4.stiffness = 2.5f; presetA4 = A4; TWElasticA02 B1 = ScriptableObject.CreateInstance <TWElasticA02>(); B1.singleTime = wordSingleTimeA; B1.easingType = easingTypeA; B1.fadeRange.end = fadeRangeEndValueA; B1.rotation = 45f; B1.anchorType = AnchorType.Top; B1.anchorOffset = Vector2.zero; B1.oscillations = 3; B1.stiffness = 5f; presetB1 = B1; TWElasticA02 B2 = ScriptableObject.CreateInstance <TWElasticA02>(); B2.singleTime = wordSingleTimeB; B2.easingType = easingTypeB; B2.fadeRange.end = fadeRangeEndValueB; B2.rotation = 45f; B2.anchorType = AnchorType.Bottom; B2.anchorOffset = Vector2.zero; B2.oscillations = 3; B2.stiffness = 5f; presetB2 = B2; TWElasticA02 B3 = ScriptableObject.CreateInstance <TWElasticA02>(); B3.singleTime = wordSingleTimeC; B3.easingType = easingTypeC; B3.fadeRange.end = fadeRangeEndValueC; B3.rotation = 15f; B3.anchorType = AnchorType.Right; B3.anchorOffset = Vector2.zero; B3.oscillations = 3; B3.stiffness = 5f; presetB3 = B3; TWElasticA02 B4 = ScriptableObject.CreateInstance <TWElasticA02>(); B4.singleTime = wordSingleTimeD; B4.easingType = easingTypeD; B4.fadeRange.end = fadeRangeEndValueD; B4.rotation = 15f; B4.anchorType = AnchorType.Left; B4.anchorOffset = Vector2.zero; B4.oscillations = 3; B4.stiffness = 5f; presetB4 = B4; TLElasticA02 C1 = ScriptableObject.CreateInstance <TLElasticA02>(); C1.singleTime = lineSingleTimeA; C1.easingType = easingTypeA; C1.fadeRange.end = fadeRangeEndValueA; C1.rotation = 45f; C1.anchorType = AnchorType.Center; C1.anchorOffset = Vector2.zero; C1.oscillations = 2; C1.stiffness = 6f; presetC1 = C1; TLElasticA02 C2 = ScriptableObject.CreateInstance <TLElasticA02>(); C2.singleTime = lineSingleTimeB; C2.easingType = easingTypeB; C2.fadeRange.end = fadeRangeEndValueB; C2.rotation = 45f; C2.anchorType = AnchorType.Center; C2.anchorOffset = Vector2.zero; C2.oscillations = 2; C2.stiffness = 6f; presetC2 = C2; TLElasticA02 C3 = ScriptableObject.CreateInstance <TLElasticA02>(); C3.singleTime = lineSingleTimeC; C3.easingType = easingTypeC; C3.fadeRange.end = fadeRangeEndValueC; C3.rotation = 15f; C3.anchorType = AnchorType.Center; C3.anchorOffset = Vector2.zero; C3.oscillations = 2; C3.stiffness = 6f; presetC3 = C3; TLElasticA02 C4 = ScriptableObject.CreateInstance <TLElasticA02>(); C4.singleTime = lineSingleTimeD; C4.easingType = easingTypeD; C4.fadeRange.end = fadeRangeEndValueD; C4.rotation = 15f; C4.anchorType = AnchorType.Center; C4.anchorOffset = Vector2.zero; C4.oscillations = 2; C4.stiffness = 6f; presetC4 = C4; TGElasticA02 D1 = ScriptableObject.CreateInstance <TGElasticA02>(); D1.singleTime = groupSingleTimeA; D1.easingType = easingTypeA; D1.fadeRange.end = fadeRangeEndValueA; D1.rotation = 30f; D1.anchorType = AnchorType.Center; D1.anchorOffset = Vector2.zero; D1.oscillations = 1; D1.stiffness = 2.5f; presetD1 = D1; TGElasticA02 D2 = ScriptableObject.CreateInstance <TGElasticA02>(); D2.singleTime = groupSingleTimeB; D2.easingType = easingTypeB; D2.fadeRange.end = fadeRangeEndValueB; D2.rotation = 30f; D2.anchorType = AnchorType.Center; D2.anchorOffset = Vector2.zero; D2.oscillations = 1; D2.stiffness = 2.5f; presetD2 = D2; TGElasticA02 D3 = ScriptableObject.CreateInstance <TGElasticA02>(); D3.singleTime = groupSingleTimeC; D3.easingType = easingTypeC; D3.fadeRange.end = fadeRangeEndValueC; D3.rotation = 45f; D3.anchorType = AnchorType.Center; D3.anchorOffset = Vector2.zero; D3.oscillations = 1; D3.stiffness = 2.5f; presetD3 = D3; TGElasticA02 D4 = ScriptableObject.CreateInstance <TGElasticA02>(); D4.singleTime = groupSingleTimeD; D4.easingType = easingTypeD; D4.fadeRange.end = fadeRangeEndValueD; D4.rotation = 45f; D4.anchorType = AnchorType.Center; D4.anchorOffset = Vector2.zero; D4.oscillations = 1; D4.stiffness = 2.5f; presetD4 = D4; AddAnimatextComponents(); }