public override void Initialize(GameObject go) { base.Initialize(go); _necromancyProc = new GradualProc(_skeletonSpawnChance); _eventable = go.GetComponent <IMiscEvent>(); _teamable = go.GetComponent <ITeamable>(); if (_eventable == null) { throw new MissingModuleException(); } _eventable.KilledEntity += KilledEntityCallback; }
public CritEffect(RandomProc proc, float critMultiplier) { _proc = proc; _critMultiplier = critMultiplier; }