/* * Spawns the player at the specified position */ public void Spawn(Vector3 spawnPosition) { isWaitingToStart = true; IsDead = false; collider.enabled = true; PigmentBody body = (PigmentBody)playerGeo.GetComponent <PigmentBody> (); body.RestoreBody(); body.SetColor(ColorWheel.neutral); InitializeStatsOnSpawn(); // Snap to spawn position transform.position = spawnPosition; }
/* * Refresh the current color on the character */ void RenderCurrentColor() { PigmentBody body = (PigmentBody)playerGeo.GetComponent <PigmentBody> (); body.SetColor(playerRGB.color); }