public Sprite GetBaseImage(CannonBaseType cannonBaseType) { switch (cannonBaseType) { case CannonBaseType.RegularGun: return(GetImagePrefab(BasePrefabRoot, SimpleBase)); } return(null); }
public GameObject GetBulletPrefab(CannonBaseType cannonBaseType) { switch (cannonBaseType) { case CannonBaseType.RegularGun: return(GetPrefab(TestBullet)); } return(null); }
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; }