public CRPlayer(CNManager manager, CREntityManager entityManager) { manager_ = manager; entityManager_ = entityManager; stringStatuses_ = new string[] { "Editing", "Simulating", "Replaying" }; }
private void AssignBodyIds() { CNManager cnManager = CNManager.Instance; CREntityManager entityManager = cnManager.EntityManager; GameObject[] normalObjects = getNormalObjects(); arrIdBodyNormalGameObjects_ = new uint[normalObjects.Length]; for (int i = 0; i < normalObjects.Length; i++) { GameObject go = normalObjects[i]; if (entityManager.IsGameObjectAnimated(go)) { uint idBody = entityManager.GetIdBodyFromGo(go); arrIdBodyNormalGameObjects_[i] = idBody; } else { arrIdBodyNormalGameObjects_[i] = uint.MaxValue; } } GameObject[] skinnedObjects = getSkinnedObjects(); arrIdBodySkinnedGameObjects_ = new uint[skinnedObjects.Length]; for (int i = 0; i < skinnedObjects.Length; i++) { GameObject go = skinnedObjects[i]; if (entityManager.IsGameObjectAnimated(go)) { uint idBody = entityManager.GetIdBodyFromGo(go); arrIdBodySkinnedGameObjects_[i] = idBody; } else { arrIdBodySkinnedGameObjects_[i] = uint.MaxValue; } } }
public CRSimulationDisplayer(CREntityManager entityManager) { entityManager_ = entityManager; }