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); }
public void CloneFromSentinel(SentinelBullet sentinel) { SpriteColor = sentinel.SpriteColor; transform.localScale = sentinel.transform.localScale; }