コード例 #1
0
        public static SentinelProjectileBullet GetProjectile(SentinelBullet sentinel)
        {
            SentinelProjectileBullet projectile = (SentinelProjectileBullet)PoolManager.Instance
                                                  .BulletPool.Get <SentinelProjectileBullet>();

            projectile.transform.position       = sentinel.transform.position;
            projectile.SentinelProjectileDamage = sentinel.Damage;

            return(projectile);
        }
コード例 #2
0
 public void CloneFromSentinel(SentinelBullet sentinel)
 {
     SpriteColor          = sentinel.SpriteColor;
     transform.localScale = sentinel.transform.localScale;
 }