You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
Minor update
This commit is contained in:
@@ -202,8 +202,6 @@ public class GameplayManager : MonoBehaviour
|
||||
playerTwoObject.GetComponent<CpuController>().SetOtherPlayer(playerOneObject.transform);
|
||||
playerOneObject.SetActive(true);
|
||||
playerTwoObject.SetActive(true);
|
||||
PlayerOne.transform.position = new Vector2(_spawnPositionsX[0], (float)DemonicsPhysics.GROUND_POINT);
|
||||
PlayerTwo.transform.position = new Vector2(_spawnPositionsX[1], (float)DemonicsPhysics.GROUND_POINT);
|
||||
if (SceneSettings.ControllerOne != null && _controllerOneType != ControllerTypeEnum.Cpu)
|
||||
{
|
||||
_playerOneController.SetControllerToPlayer();
|
||||
|
||||
@@ -51,7 +51,14 @@ public class ObjectPoolingManager : MonoBehaviour
|
||||
|
||||
public GameObject GetObject(string name)
|
||||
{
|
||||
return _jumpEffects[0];
|
||||
for (int i = 0; i < _jumpEffects.Count; i++)
|
||||
{
|
||||
if (!_jumpEffects[i].activeSelf)
|
||||
{
|
||||
return _jumpEffects[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public DemonicsAnimator GetObjectAnimation(string name)
|
||||
|
||||
Reference in New Issue
Block a user