Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PlayerView.cs
- public abstract class PlayerView : PhysicsRaycaster {
- public abstract void TerrainAction(Battlefield target, EventTriggerType what, Battlefield.Locus where);
- // ...
- }
- // MinimapController.cs
- public class MinimapController : PlayerView {
- public override void TerrainAction(Battlefield target, EventTriggerType what, Battlefield.Locus where) {
- Debug.Log (what);
- }
- // ...
- }
- // Environment.cs
- public class Environment : Battlefield, IPointerDownHandler, IPointerUpHandler, IDragHandler {
- public void ProcessPointer(PointerEventData pointer, EventTriggerType what) {
- pointer.pressEventCamera.GetComponent<PlayerView>().TerrainAction(this, what, new Battlefield.Point(where));
- }
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement