private void HandleNormal() { Vector3 position = base.transform.position; if (position.y < netBody.despawnHeight + 10f) { GiftSpawn randomSpawn = group.GetRandomSpawn(); Vector3 position2 = randomSpawn.GetPosition(); netBody.Respawn(position2 - netBody.startPos + Vector3.up * Random.Range(20, 30)); phase = GiftPhase.Chute; targetHeight = position2.y; } }
private void RespawnProcess() { for (int num = objectsToRespawn.Count - 1; num >= 0; num--) { objectsToRespawn[num].delay -= Time.fixedDeltaTime; if (objectsToRespawn[num].delay < 0f) { NetBody respawnObject = objectsToRespawn[num].respawnObject; delayObjects.Add(objectsToRespawn[num]); objectsToRespawn.RemoveAt(num); respawnObject.Respawn(); } } }
private void Respawn() { ResetScale(); base.gameObject.SetActive(value: true); netbody.Respawn(); }
private void Respawn() { base.gameObject.SetActive(value: true); body.Respawn(); }