Skip to content

Commit

Permalink
iOS Port: Built on iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpaulson committed Jun 3, 2013
1 parent c728ba9 commit 14fde45
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Binary file modified Assembly-CSharp.pidb
Binary file not shown.
8 changes: 4 additions & 4 deletions Assets/BlockManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class BlockManager : MonoBehaviour {
new List<float>{1f,-2f},
new List<float>{2f,-2f},
};
#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IPHONE
private Touch firstTouch;
private bool touchStart = false;
private GameObject touchBlock = null;
Expand Down Expand Up @@ -142,7 +142,7 @@ void Update () {
#endif


#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IPHONE
foreach (Touch touch in Input.touches) {
if(touch.phase == TouchPhase.Began && !this.touchStart && !this.colorSwap) {
this.firstTouch = touch;
Expand Down Expand Up @@ -370,7 +370,7 @@ void initRepeats() {
#if UNITY_STANDALONE || UNITY_EDITOR || UNITY_WEBPLAYER
InvokeRepeating("clearAllBlocks", 0.5f, 0.2f);
#endif
#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IPHONE
InvokeRepeating("clearAllBlocks", 0.5f, 0.55f);
InvokeRepeating("enableRotation", 0.5f, 1.0f);
#endif
Expand Down Expand Up @@ -760,7 +760,7 @@ bool isValidSelection(GameObject cursor) {

}

#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IPHONE
GameObject getSelectorTouch(GameObject cursor, Vector3 hDirection) {

RaycastHit hit;
Expand Down
2 changes: 1 addition & 1 deletion Assets/RotateCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void Start () {
#if UNITY_STANDALONE || UNITY_WEBPLAYER || UNITY_EDITOR
cam.fieldOfView = 60f;
#endif
#if UNITY_ANDROID
#if UNITY_ANDROID || UNITY_IPHONE
cam.fieldOfView = 50f;
#endif

Expand Down
Binary file modified ProjectSettings/ProjectSettings.asset
Binary file not shown.
2 changes: 1 addition & 1 deletion cubes.userprefs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<File FileName="Assets/Invader.cs" Line="1" Column="1" />
<File FileName="Assets/Block.cs" Line="1" Column="1" />
<File FileName="Assets/RotateCamera.cs" Line="1" Column="1" />
<File FileName="Assets/BlockManager.cs" Line="926" Column="88" />
<File FileName="Assets/BlockManager.cs" Line="991" Column="82" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
Expand Down

0 comments on commit 14fde45

Please sign in to comment.