Beispiel #1
0
 public Sprite GetBaseImage(CannonBaseType cannonBaseType)
 {
     switch (cannonBaseType)
     {
     case CannonBaseType.RegularGun:
         return(GetImagePrefab(BasePrefabRoot, SimpleBase));
     }
     return(null);
 }
Beispiel #2
0
        public GameObject GetBulletPrefab(CannonBaseType cannonBaseType)
        {
            switch (cannonBaseType)
            {
            case CannonBaseType.RegularGun:
                return(GetPrefab(TestBullet));
            }

            return(null);
        }
Beispiel #3
0
 public CannonBase(Rang rang, float damage, float attackSpeed,
                   ProjectileType projectileType, float projectileSpeed,
                   CannonBaseType cannonBaseType)
 {
     Rang            = rang;
     Damage          = damage;
     AttackSpeed     = attackSpeed;
     ProjectileType  = projectileType;
     ProjectileSpeed = projectileSpeed;
     CannonBaseType  = cannonBaseType;
 }