示例#1
0
 void OnEnable()
 {
     store_EverySecondNew       = fx_Glitch.RandomEvery;
     store_ForSecondNew         = fx_Glitch.RandomDuration;
     store_InterferenceSetting  = fx_Glitch.SettingsInterferences;
     store_TearingSetting       = fx_Glitch.SettingsTearing;
     store_AmountRGB            = fx_RGB.Amount;
     fx_Glitch.RandomActivation = false;
 }
示例#2
0
    void OnDead(Vector3 pos)
    {
        store_EverySecondNew      = fx_Glitch.RandomEvery;
        store_ForSecondNew        = fx_Glitch.RandomDuration;
        store_InterferenceSetting = fx_Glitch.SettingsInterferences;
        store_TearingSetting      = fx_Glitch.SettingsTearing;
        store_AmountRGB           = fx_RGB.Amount;
        //     fx_Glitch.IsActive = false;
        fx_Glitch.RandomEvery           = EverySecondNew;
        fx_Glitch.RandomDuration        = ForSecondNew;
        fx_Glitch.SettingsInterferences = InterferenceSetting;
        fx_Glitch.SettingsTearing       = TearingSetting;
        //      fx_Glitch.IsActive = true;
        fx_RGB.Amount = AmountRGB;

        Invoke("StopGlitchEffect", TimetoChange);
    }