This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class RotationPivot: MonoBehaviour | |
{ | |
/** | |
* The transform of the object you want to rotate with this pivot | |
*/ | |
public Transform target; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library minefield; | |
import 'dart:html'; | |
import 'dart:math'; | |
part 'field.dart'; | |
class Minefield { | |
int _width; // Width of canvas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library minefield; | |
import 'dart:html'; | |
import 'dart:math'; | |
part 'field.dart'; | |
class Minefield { | |
int _width; // Width of canvas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
part of minefield; | |
class Field{ | |
final int index; | |
final Point position; | |
bool isOpen = false; | |
bool isMine = false; | |
bool isFlagged = false; | |
int surroundingMines = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library minefield; | |
import 'dart:html'; | |
class Minefield { | |
int _width; // Width of canvas | |
int _height; // Height of canvas | |
Element _container; |