public void AttachOpacity(BaseMonoAbilityEntity target, float opacity) { PropObjectActor actor = Singleton <EventManager> .Instance.GetActor <PropObjectActor>(target.GetRuntimeID()); if (actor != null) { actor.SetPorpObjectOpacity(opacity); this.CheckInit <Tuple <BaseMonoAbilityEntity, float> >(ref this._attachedOpacity); this._attachedOpacity.Add(Tuple.Create <BaseMonoAbilityEntity, float>(target, opacity)); } }
public void AttachAllowSwitchOther(BaseMonoAbilityEntity target, bool allowSwitchOther) { if (Singleton <LevelManager> .Instance.levelActor.levelMode == LevelActor.Mode.Single) { this.CheckInit <Tuple <AvatarActor, bool> >(ref this._attachAllowSwitchOther); AvatarActor actor = Singleton <EventManager> .Instance.GetActor <AvatarActor>(target.GetRuntimeID()); if (actor != null) { actor.AllowOtherSwitchIn = allowSwitchOther; if (allowSwitchOther) { actor.ResetSwitchInTimer(); } this._attachAllowSwitchOther.Add(Tuple.Create <AvatarActor, bool>(actor, allowSwitchOther)); } } }
public void AttachMuteOtherQTE(BaseMonoAbilityEntity target, bool muteOtherQTE) { this.CheckInit <Tuple <AvatarActor, bool> >(ref this._attachMuteOtherQTE); AvatarActor actor = Singleton <EventManager> .Instance.GetActor <AvatarActor>(target.GetRuntimeID()); if (actor != null) { actor.MuteOtherQTE = muteOtherQTE; this._attachMuteOtherQTE.Add(Tuple.Create <AvatarActor, bool>(actor, muteOtherQTE)); } }