protected override void Awake() { base.Awake(); m_ItemType = PlayerUltimateType.Default; if (m_FireTransforms.Length == 0) { throw new ObjectNullException(typeof(EnemyCore), nameof(m_FireTransforms)); } }
protected Gun(GunType gunType, int powerLevel, int bulletSpeed, float bulletFiringDelay, int bulletDamage, PlayerUltimateType playerUltimateType, PlayerSupporterType playerSupporterType) { this.m_GunType = gunType; this.m_PowerLevel = powerLevel; this.m_BulletSpeed = bulletSpeed; this.m_CurrentBulletFiringTime = 0.0f; this.m_BulletFiringDelay = bulletFiringDelay; this.m_IsFireEnabled = true; this.m_BulletDamage = bulletDamage; this.m_PlayerUltimateType = playerUltimateType; this.m_PlayerSupporterType = playerSupporterType; this.m_CorePool = new GunCorePool(); }
public PlayerUltimateCore SetItemType(PlayerUltimateType itemType) { m_ItemType = itemType; return(this); }