Skip to content

Commit

Permalink
Added final version of flappy bird
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineCharton committed May 26, 2018
1 parent 9bde5f7 commit 837e453
Show file tree
Hide file tree
Showing 16 changed files with 683 additions and 276 deletions.
Binary file added FlappyBird/Assets/Capture.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions FlappyBird/Assets/Capture.PNG.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using UnityEngine;

namespace Constellation.Unity {
public class Quit : INode, IReceiver {
public const string NAME = "Quit";
UnityEngine.GameObject GameObject;
ISender sender;
public void Setup (INodeParameters _nodeParameters) {
_nodeParameters.AddInput (this, false, "Quit application");
sender = _nodeParameters.GetSender();
}

public string NodeName () {
return NAME;
}

public string NodeNamespace () {
return NameSpace.NAME;
}

public void Set (GameObject _gameObject) {
GameObject = _gameObject;
}

public void Receive (Variable _value, Input _input) {
Application.Quit();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public Node<INode> GetNode (string nodeName) {
case MaterialColor.NAME:
INode materialColor = new MaterialColor() as INode;
return new Node<INode> (materialColor);
case Quit.NAME:
INode quit = new Quit() as INode;
return new Node<INode> (quit);
default:
return null;
}
Expand Down
Loading

0 comments on commit 837e453

Please sign in to comment.