Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System;
- public class PlayerControl : MonoBehaviour {
- public event EventHandler MoveComplete;
- // Use this for initialization
- void Start () {
- }
- // Update is called once per frame
- void Update () {
- if (Input.GetMouseButtonUp(0)) {
- // Test logic for PlayerMoveComplete
- PlayerMoveComplete();
- }
- }
- void PlayerMoveComplete()
- {
- if (MoveComplete != null) {
- MoveComplete(this, EventArgs.Empty);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement