Esempio n. 1
0
    protected override void Awake()
    {
        base.Awake();
        m_ItemType = PlayerUltimateType.Default;

        if (m_FireTransforms.Length == 0)
        {
            throw new ObjectNullException(typeof(EnemyCore), nameof(m_FireTransforms));
        }
    }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 public PlayerUltimateCore SetItemType(PlayerUltimateType itemType)
 {
     m_ItemType = itemType;
     return(this);
 }