Skip to content

Instantly share code, notes, and snippets.

View mzugn's full-sized avatar

MartonZ mzugn

  • London, UK
View GitHub Profile
@mzugn
mzugn / RectangularMover.cs
Last active December 10, 2015 22:58
Move on a grid
/*
* RectangularMover.cs
* Purpose: Moves the object to the position where mouse-click points
* on a *rectangular* path. First on X, then on Z axis.
* Additional movement can not be issued until the current one finishes.
* Uses coroutines for niceties.
* Author: z_murc @ UnityAnswers
*/
using UnityEngine;