forked from eatfrog/bulletmllib4unity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBulletManager.cs
More file actions
34 lines (29 loc) · 949 Bytes
/
IBulletManager.cs
File metadata and controls
34 lines (29 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using UnityEngine;
namespace BulletMLLib
{
/// <summary>
/// This is the interface that outisde assemblies will use to manage bullets... mostly for creating/destroying them
/// </summary>
public interface IBulletManager
{
#region Methods
/// <summary>
/// a mathod to get current position of the player
/// This is used to target bullets at that position
/// </summary>
/// <returns>The position to aim the bullet at</returns>
/// <param name="targettedBullet">the bullet we are getting a target for</param>
Vector2 PlayerPosition(Bullet targettedBullet);
/// <summary>
/// A bullet is done being used, do something to get rid of it.
/// </summary>
/// <param name="deadBullet">the Dead bullet.</param>
void RemoveBullet(Bullet deadBullet);
/// <summary>
/// Create a new bullet.
/// </summary>
/// <returns>A shiny new bullet</returns>
Bullet CreateBullet(Emitter emitter);
#endregion //Methods
}
}