Permalink
Browse files

Added images and scripts for single player.

  • Loading branch information...
Xorcerer committed Dec 10, 2013
1 parent b5ddcbf commit e6a9ccb9374815d814f67d6433a804628de05bcc

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,14 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 0}
m_IsPrefabParent: 1
m_IsExploded: 1

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,23 @@
using UnityEngine;
using System.Collections;
public class Controller : MonoBehaviour
{
public GameObject Player;
public float Speed = 10;
public const int LeftButton = 0;
public const int RightButton = 1;
// Update is called once per frame
void Update ()
{
if (Input.GetMouseButton (LeftButton)) {
// TODO: 1, Set correct position
// TODO: 2, move with Speed, not instantly.
var mousePosition = Input.mousePosition;
var newPosition = new Vector3(mousePosition.x, mousePosition.y, Player.transform.position.z);
Player.transform.position = newPosition;
}
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;
public class Network : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit e6a9ccb

Please sign in to comment.