Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public CritEffect(RandomProc proc, float critMultiplier)
 {
     _proc           = proc;
     _critMultiplier = critMultiplier;
 }