/// <summary> /// Initializes the engine and sets the instance value. /// </summary> void Awake() { instance = this; bodyCount = 0; bodies = new List <DBody>(); detector = new SimpleDetector(); integrator = new EulerImplicit(); contacts = new HashSet <Manifold>(); simulate = false; }
// Use this for initialization void Start() { rigidbody2d = GetComponent <Rigidbody2D>(); footScript = footTrigger.GetComponent <SimpleDetector>(); }