This file contains 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains 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; | |
using UnityEngine.UI; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ResponsiveLayoutGroup : LayoutGroup { | |
[Tooltip("Use this to flip which axis should be used in each orientation")] | |
public bool reverseLayout; | |
public Vector2 spacing = Vector2.zero; |
This file contains 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; | |
/* | |
I really hate having to type this long line of a code to get the component of a prefab I want to spawn (Transform for simplicity) | |
Transform t = (GameObject.Instantiate(prefabTransform.gameObject) as GameObject).GetComponent<Transform>(); | |
Now all I have to type is: |
This file contains 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ActorManager : MonoBehaviour | |
{ | |
public Actor actorPrefab; | |
public List<Actor> actors = new List<Actor>(); | |
void Start() |
This file contains 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; | |
using System.Collections; | |
public class NaxBehaviour : MonoBehaviour | |
{ | |
private PathFinder _pathFinder; | |
public PathFinder pathFinder | |
{ | |
get |
This file contains 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; | |
using System.Collections; | |
public class Unit : MonoBehaviour | |
{ | |
public Transform target; | |
void Start(){ | |
StartCoroutine(MoveTo(target)) | |
} |