void Awake() { if (impl == null) { impl = gameObject.AddComponent(ImplFinder.GetImplementationType <DamageHero_I>()) as DamageHero_I; impl.Damager = this; } }
protected virtual void Awake() { //BossStage = 1; var bossImplType = ImplFinder.GetImplementationType <Boss_I>(); impl = (Boss_I)gameObject.AddComponent(bossImplType); entityHealth = GetComponent <EntityHealth>(); entityHealth.OnDeathEvent += OnDeath; }
// Token: 0x060000CC RID: 204 RVA: 0x00004FE8 File Offset: 0x000031E8 private void Awake() { if (Player.NailStrikePool == null) { Player.NailStrikePool = ObjectPool.Create(EffectAssets.NailStrikePrefab); Player.NailStrikePool.FillPool(1); Player.SlashImpactPool = ObjectPool.Create(EffectAssets.SlashImpactPrefab); Player.SlashImpactPool.FillPool(1); } Type implementationType = ImplFinder.GetImplementationType <Player_I>(); this.impl = (Player_I)base.gameObject.AddComponent(implementationType); this.impl.Initialize(); }
void Awake() { Instance = this; impl = (Shaker_I)gameObject.AddComponent(ImplFinder.GetImplementationType <Shaker_I>()); }
void Awake() { var enemyImplType = ImplFinder.GetImplementationType <Enemy_I>(); enemyImpl = (Enemy_I)gameObject.AddComponent(enemyImplType); }