Ejemplo n.º 1
0
    /*
     * 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;
    }
Ejemplo n.º 2
0
    /*
     * Refresh the current color on the character
     */
    void RenderCurrentColor()
    {
        PigmentBody body = (PigmentBody)playerGeo.GetComponent <PigmentBody> ();

        body.SetColor(playerRGB.color);
    }