SchultzGames
Para tirar dúvidas, crie um tópico especifico na área "Dúvidas em Geral" e aguarde ser respondido. Evite comentar em tópicos não relacionados a sua dúvida Very Happy
TÓPICOS RECENTES:
Tópico:
Postado em:
Postado por:
ESSE EO MEU JOGO QUE EU ESTOU DESENVOLVENDO (VERSAO ALPHA)
Tela (Screen) Android e Joystick adaptável à tela !
[DÚVIDA] SOM SAIR QUANDO CHEGAR PERTO DE UM OBJETO
Tela Ajustável (Android)
Como girar o mundo?
Ajuda Jogo de Luta 2D precisando de AI CPU inteligente
Dúvida no uso do If para esta ocasião ?
ALGUEM SABE COMO POSSO DESATIVAR O LOOP DA ANIMAÇAO
(AVALIEM) Sistema de IA para pedestre e trafego e ROTAS COM RAIN
Mais um Teste do jogo em andamento
PHP e MYSQLI
Sistema de Nevoa
TEM COMO COLOCAR UM VIDEO NO CANVAS?
Como rodar uma animação feita em shape keys do blender na unity?
Erro no Script
COMO EXPORTAR MEU PROJETO E DAR CONTINUAÇÃO POR OUTRO COMPUTADOR ?
MEU JOGO ANDROID
Asset Sistema de rajada
Parentear Objetos por script C#
Preciso de Programador e Modelador para jogo de tiro futurista
BAIXE GRÁTIS MODELOS 3D (FUZIL FOTO REALÍSTICO - 22-06-2017)
[Unity] - Criar botão em C#
[AVALIAÇÃO] AVALIEM MEU JOGO MOBILE
Bugs da Unity
Meu Canva nao para de tremer o que fazer?
Duvidas multiplayer online em terceira pessoa
Defeito com colisao
Script de Mover - Estilo Subway Surfs
Erro estranho Invalid AABB a
não esta salvando o score
Ajuda com scripts de inimigo e player'' interação de zumbi e player''
Mudar Gráfico
[TUTORIAL] Mover, Girar e lançar objetos com o mouse ( estilo Amnesia )
[TUTORIAL] Android - Sistema de controle third person shooter, Joystick + Swipe camera
[Resolvido] Relacionada a Objetos em Arrays.
Modelagem de personagens
Como sair desse loop?
Como instanciar muitos objetos?
[TUTORIAL] 43 ÓTIMAS DICAS DE OTIMIZAÇÃO PARA JOGOS MOBILE (Android)
[Game] World Adventure (Nova Beta)
[_____CRONOGRAMA DO CANAL_____]
[UPDATE DO MEU PROJETO] - Veja e avalie o sistema de combate do meu jogo!
Problema com Sprite
Sistema de Susto Cronometrado
[TUTORIAL] Camera de visão noturna (Night vision) na Unity 5
Script de Mover
[Duvida] ScrollBar
- -[ASSETS PARA GAMES]- -
[Votação] História futurista ou mais antiga ._.
[TUTORIAL] AI Enemy ( Jogos de terror )
-[ASSETS PARA GAMES/ALGUNS]-
esse e o meu jogo "a floresta" que estou fazendo VEJAM O VIDEO
Problema esquisito com botoes depois de fazer a build
[Duvida] Decrescer uma Array.
[____TÓPICO LIVRE____] FALE O QUE QUISER (Parte 2)
Como mudar o sprite?
[TUTORIAL] Unity 5 - Wheel Collider, veículos, suspensão realista.
Glitch visual
Probleminha em um script que fiz
[TUTORIAL] MENU PRINCIPAL - UNITY 5 (5.3 ou superior) (Com UI)
Escolha de Controle para Android
Como instanciar na posição desejada (Canvas)?
[TUTORIAL] UNITY 5 - Efeito submerso (underwater effect), distorção da água e gotas na tela
Sistema de Missao e Recompensa!
[____APOIE O FÓRUM E O CANAL E GANHE RECOMPENSAS____]
[Duvida] Como Deixar O Texto Mais Bonito.
Animação de inimigo não funciona
[Dica] Como converter JAVA SCRIPT para C#
Projeto, Recrutamento! Jogo de terror 3D " Sem Medo"
[Desabilitar gravidade de um Character Controller]
Primeira GamePlay do meu jogo de fps multiplayer (em desenvolvimento)
Cenários Espaciais vs Escala
Jogo para Android para testar
Atualizado (The Pyramid 1.1.1)
Fighters for honor(Jogo da segunda guerra mundial)
Ajuda Erro ao compilar Android
Script não compila com monodevelop
Imagem personalizada no menu de configuração [PRINT]
Demo Terror
[RESOLVIDO] Problema depois de passar para nivel 3
efeitos sonoros
[Modelo 3D - Avaliação] Sniper M700 LowPoly
PHP numeros inteiro?
CONTRATANDO ANIMADOR
Asset para game de terror
[Modelo 3D] AK-47
[DEVLOG - 17-06-17] Projeto - Girl Blade
jogo quiz 2D unity 5...
Ajuda com Script
Duvida com o Pack UFPS
[PEDIDO] Gostaria que avaliaçe meu Cenario LOW POLY
(Resolvido)Monodevelop
Como se faz uma copia de uma cena?
[Equipe] Equipe para jogo tower defense low poly
Como faço um sistema de sanidade (estilo amnesia)
[Ajuda] Variavel não esta recebendo o valor do outro script
Material Editor
Como sera que fizeram o sistema de hackear do watch dogs?
Como desativa um script dentro de outro?
Hoje à(s) 6:13 am
Hoje à(s) 1:12 am
Hoje à(s) 1:10 am
Hoje à(s) 12:34 am
Hoje à(s) 12:09 am
Ontem à(s) 11:17 pm
Ontem à(s) 10:57 pm
Ontem à(s) 9:38 pm
Ontem à(s) 8:26 pm
Ontem à(s) 8:24 pm
Ontem à(s) 7:37 pm
Ontem à(s) 7:18 pm
Ontem à(s) 5:16 pm
Ontem à(s) 2:31 pm
Ontem à(s) 2:28 pm
Ontem à(s) 12:34 pm
Ontem à(s) 12:33 pm
Ontem à(s) 12:30 pm
Ontem à(s) 12:20 pm
Ontem à(s) 12:10 pm
Ontem à(s) 11:08 am
Ontem à(s) 9:37 am
Ontem à(s) 8:01 am
Qua Jun 21, 2017 10:19 pm
Qua Jun 21, 2017 10:08 pm
Qua Jun 21, 2017 9:31 pm
Qua Jun 21, 2017 8:39 pm
Qua Jun 21, 2017 8:39 pm
Qua Jun 21, 2017 8:34 pm
Qua Jun 21, 2017 8:08 pm
Qua Jun 21, 2017 7:35 pm
Qua Jun 21, 2017 6:12 pm
Qua Jun 21, 2017 4:31 pm
Qua Jun 21, 2017 2:12 pm
Qua Jun 21, 2017 1:48 pm
Qua Jun 21, 2017 11:52 am
Qua Jun 21, 2017 12:25 am
Ter Jun 20, 2017 11:40 pm
Ter Jun 20, 2017 11:19 pm
Ter Jun 20, 2017 11:14 pm
Ter Jun 20, 2017 10:59 pm
Ter Jun 20, 2017 10:56 pm
Ter Jun 20, 2017 9:35 pm
Ter Jun 20, 2017 9:17 pm
Ter Jun 20, 2017 9:11 pm
Ter Jun 20, 2017 7:25 pm
Ter Jun 20, 2017 7:24 pm
Ter Jun 20, 2017 6:57 pm
Ter Jun 20, 2017 6:34 pm
Ter Jun 20, 2017 6:32 pm
Ter Jun 20, 2017 6:05 pm
Ter Jun 20, 2017 6:01 pm
Ter Jun 20, 2017 4:57 pm
Ter Jun 20, 2017 1:53 pm
Ter Jun 20, 2017 1:23 pm
Ter Jun 20, 2017 1:18 pm
Ter Jun 20, 2017 1:13 pm
Ter Jun 20, 2017 12:55 pm
Ter Jun 20, 2017 12:52 pm
Ter Jun 20, 2017 12:51 pm
Ter Jun 20, 2017 12:41 pm
Ter Jun 20, 2017 12:36 pm
Ter Jun 20, 2017 12:31 pm
Ter Jun 20, 2017 12:27 pm
Ter Jun 20, 2017 12:24 pm
Ter Jun 20, 2017 12:20 pm
Ter Jun 20, 2017 12:15 pm
Ter Jun 20, 2017 10:33 am
Ter Jun 20, 2017 1:11 am
Seg Jun 19, 2017 11:55 pm
Seg Jun 19, 2017 10:32 pm
Seg Jun 19, 2017 10:25 pm
Seg Jun 19, 2017 10:23 pm
Seg Jun 19, 2017 7:56 pm
Seg Jun 19, 2017 7:51 pm
Seg Jun 19, 2017 7:39 pm
Seg Jun 19, 2017 7:27 pm
Seg Jun 19, 2017 5:37 pm
Seg Jun 19, 2017 4:47 pm
Seg Jun 19, 2017 4:16 pm
Seg Jun 19, 2017 12:55 pm
Seg Jun 19, 2017 12:52 pm
Seg Jun 19, 2017 11:59 am
Seg Jun 19, 2017 11:35 am
Seg Jun 19, 2017 10:56 am
Seg Jun 19, 2017 9:00 am
Seg Jun 19, 2017 6:57 am
Dom Jun 18, 2017 9:29 pm
Dom Jun 18, 2017 6:54 pm
Dom Jun 18, 2017 6:38 pm
Dom Jun 18, 2017 6:08 pm
Dom Jun 18, 2017 6:06 pm
Dom Jun 18, 2017 4:06 pm
Dom Jun 18, 2017 2:49 pm
Dom Jun 18, 2017 1:09 pm
Dom Jun 18, 2017 1:10 am
Dom Jun 18, 2017 12:14 am
Sab Jun 17, 2017 11:45 pm
Sab Jun 17, 2017 10:32 pm
glauco
Gabriel César O
Gabriel César O
SmithSchuldiner
Priste_Hell
niao
niao
marcos4503
Zecandy
Zecandy
Callyde Jr
bitgames
glauco
Willian Wii
michelly
Callyde Jr
marcos4503
Dom3000
marcos4503
edu094
Zecandy
Gilliard
dstaroski
marcos4503
Dom3000
weslleyFx
Dom3000
Duarte
Dom3000
marcos4503
Robinsandi
RenanKrause
Phoenix Wright
marcos4503
dstaroski
sabbath
JoelMJunior
JoelMJunior
thzin
Mateus2583
thzin
marcos4503
Blindado
PauloFR
tom ramber
bruxamissi
ffabim
PauloFR
PauloFR
Joaopm1
Chilinger
Chilinger
DUT
rafaelllsd
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
MarcosSchultz
dstaroski
MateusWTP
Bruno11playerG
NyanHeavyBR
NyanHeavyBR
marcos4503
Callyde Jr
Lteo
marcos4503
zZAndersonZz
DUT
SpartanoLeonidas300
dstaroski
Gabriel César O
Gabriel César O
Callyde Jr
fecirineu
iagokennedyy
Mic4el
dstaroski
Joy29
PauloFR
Diego Felix
Gabriel César O
Zecandy
DUT
bitgames
Ghosthy
Ronmaster
PauloFR
marcos4503
DUT

-[COMO RESOLVO ESTE ERRO DO SCRIPT??]-

Ver o tópico anterior Ver o tópico seguinte Ir em baixo

DÚVIDA -[COMO RESOLVO ESTE ERRO DO SCRIPT??]-

Mensagem por MrTFGamer1 em Sab Jun 17, 2017 5:43 pm

Boa tarde!, Como resolvo este erro desse script??
Grato, MrTFGamer Smile



Código:
using UnityEngine;
using System.Collections;
 
/// <summary>
/// Implements a Day/Night cycle relative to the game world, with a World-Time clock, and optional Direcitonal Light control.
/// </summary>
/// <!--
/// Version 0.0.1.0 (beta)
/// By Reed Kimble
/// Last Revision 5/19/2011
/// -->
/// <remarks>
/// Add this script to a new GameObject to create a Day/Night cycle for the scene. The day/night cycle effect is achieved by modifying the
/// scene ambient light color, fog color, and skybox material.  The script will also rotate, fade, and enable/disable a directional
/// light if one is attached to the same GameObject as the DayNightController script.  The length of a complete day (in seconds) and the number of
/// hours per day are modifiable in the script fields and allow calculation of the World-time hour-of-day.  Each 'phase' of the day is considered
/// to be 1/4 of the dayCycleLength.
///
/// Note that the script will rotate the GameObject transform it is attached to, even if no directional light is attached. You will probably want to
/// use a dedicated GameObject for this script and any attached directional light.
///
/// The GameObject with this script should be placed roughly in the center of your scene, with a height of about 2/3 the length (or width) of the terrain.
/// If that GameObject has a light, it should be a directional light pointed straight down (x:90, y:0, z:0).  This light will then be rotated around its
/// x-axis (relative to the scene; eg. as if you used the rotation tool locked on the green x axis) and will reach its horizontal peeks during the
/// end of dusk and beginning of dawn, turning off during the night (upside-down rotation).
///
/// The reset command will attempt to use the default skybox assets DawnDusk, Sunny2, and StarryNight if that package has been imported.  The
/// command will also choose acceptable color values and set the day cycle to two minutes. It is suggested that the directional light be a light-
/// yellow or peach in color with a roughly 0.33f intensity.  The script will not set any default values for the light, if one exists, so the light
/// must be configured manually.
/// </remarks>
public class DayNightController : MonoBehaviour
{
    /// <summary>
    /// The number of real-world seconds in one game day.
    /// </summary>
    public float dayCycleLength;
 
    /// <summary>
    /// The current time within the day cycle. Modify to change the World Time.
    /// </summary>
    public float currentCycleTime;
 
    //Would be the amount of time the sky takes to transition if UpdateSkybox were used.
    //public float skyTransitionTime;
 
    /// <summary>
    /// The current 'phase' of the day; Dawn, Day, Dusk, or Night
    /// </summary>
    public DayPhase currentPhase;
 
    /// <summary>
    /// The number of hours per day used in the WorldHour time calculation.
    /// </summary>
    public float hoursPerDay;
 
    /// <summary>
    /// Dawn occurs at currentCycleTime = 0.0f, so this offsets the WorldHour time to make
    /// dawn occur at a specified hour. A value of 3 results in a 5am dawn for a 24 hour world clock.
    /// </summary>
    public float dawnTimeOffset;
 
    /// <summary>
    /// The calculated hour of the day, based on the hoursPerDay setting. Do not set this value.
    /// Change the time of day by calculating and setting the currentCycleTime.
    /// </summary>
    public int worldTimeHour;
 
    /// <summary>
    /// The scene ambient color used for full daylight.
    /// </summary>
    public Color fullLight;
 
    /// <summary>
    /// The scene ambient color used for full night.
    /// </summary>
    public Color fullDark;
 
    /// <summary>
    /// The scene skybox material to use at dawn and dusk.
    /// </summary>
    public Material dawnDuskSkybox;
 
    /// <summary>
    /// The scene fog color to use at dawn and dusk.
    /// </summary>
    public Color dawnDuskFog;
 
    /// <summary>
    /// The scene skybox material to use during the day.
    /// </summary>
    public Material daySkybox;
 
    /// <summary>
    /// The scene fog color to use during the day.
    /// </summary>
    public Color dayFog;
 
    /// <summary>
    /// The scene skybox material to use at night.
    /// </summary>
    public Material nightSkybox;
 
    /// <summary>
    /// The scene fog color to use at night.
    /// </summary>
    public Color nightFog;
 
    /// <summary>
    /// The calculated time at which dawn occurs based on 1/4 of dayCycleLength.
    /// </summary>
    private float dawnTime;
 
    /// <summary>
    /// The calculated time at which day occurs based on 1/4 of dayCycleLength.
    /// </summary>
    private float dayTime;
 
    /// <summary>
    /// The calculated time at which dusk occurs based on 1/4 of dayCycleLength.
    /// </summary>
    private float duskTime;
 
    /// <summary>
    /// The calculated time at which night occurs based on 1/4 of dayCycleLength.
    /// </summary>
    private float nightTime;
 
    /// <summary>
    /// One quarter the value of dayCycleLength.
    /// </summary>
    private float quarterDay;
 
    //Would be the amount of time remaining in the skybox transition if UpdateSkybox were used.
    //private float remainingTransition;
 
    /// <summary>
    /// The specified intensity of the directional light, if one exists. This value will be
    /// faded to 0 during dusk, and faded from 0 back to this value during dawn.
    /// </summary>
    private float lightIntensity;
 
    /// <summary>
    /// Initializes working variables and performs starting calculations.
    /// </summary>
    void Initialize()
    {
        //remainingTransition = skyTransitionTime; //Would indicate that the game should start with an active transition, if UpdateSkybox were used.
        quarterDay = dayCycleLength * 0.25f;
        dawnTime = 0.0f;
        dayTime = dawnTime + quarterDay;
        duskTime = dayTime + quarterDay;
        nightTime = duskTime + quarterDay;
        if (light != null)
        { lightIntensity = light.intensity; }
    }
 
    /// <summary>
    /// Sets the script control fields to reasonable default values for an acceptable day/night cycle effect.
    /// </summary>
    void Reset()
    {
        dayCycleLength = 120.0f;
        //skyTransitionTime = 3.0f; //would be set if UpdateSkybox were used.
        hoursPerDay = 24.0f;
        dawnTimeOffset = 3.0f;
        fullDark = new Color(32.0f / 255.0f, 28.0f / 255.0f, 46.0f / 255.0f);
        fullLight = new Color(253.0f / 255.0f, 248.0f / 255.0f, 223.0f / 255.0f);
        dawnDuskFog = new Color(133.0f / 255.0f, 124.0f / 255.0f, 102.0f / 255.0f);
        dayFog = new Color(180.0f / 255.0f, 208.0f / 255.0f, 209.0f / 255.0f);
        nightFog = new Color(12.0f / 255.0f, 15.0f / 255.0f, 91.0f / 255.0f);
        Skybox[] skyboxes = AssetBundle.FindObjectsOfTypeIncludingAssets(typeof(Skybox)) as Skybox[];
        foreach (Skybox box in skyboxes)
        {
            if (box.name == "DawnDusk Skybox")
            { dawnDuskSkybox = box.material; }
            else if (box.name == "StarryNight Skybox")
            { nightSkybox = box.material; }
            else if (box.name == "Sunny2 Skybox")
            { daySkybox = box.material; }
        }
    }
 
    // Use this for initialization
    void Start()
    {
        Initialize();
    }
 
    // Update is called once per frame
    void Update()
    {
        // Rudementary phase-check algorithm:
        if (currentCycleTime > nightTime && currentPhase == DayPhase.Dusk)
        {
            SetNight();
        }
        else if (currentCycleTime > duskTime && currentPhase == DayPhase.Day)
        {
            SetDusk();
        }
        else if (currentCycleTime > dayTime && currentPhase == DayPhase.Dawn)
        {
            SetDay();
        }
        else if (currentCycleTime > dawnTime && currentCycleTime < dayTime && currentPhase == DayPhase.Night)
        {
            SetDawn();
        }
 
        // Perform standard updates:
        UpdateWorldTime();
        UpdateDaylight();
        UpdateFog();
        //UpdateSkybox(); //would be called if UpdateSkybox were used.
 
        // Update the current cycle time:
        currentCycleTime += Time.deltaTime;
        currentCycleTime = currentCycleTime % dayCycleLength;
    }
 
    /// <summary>
    /// Sets the currentPhase to Dawn, turning on the directional light, if any.
    /// </summary>
    public void SetDawn()
    {
        RenderSettings.skybox = dawnDuskSkybox; //would be commented out or removed if UpdateSkybox were used.
        //remainingTransition = skyTransitionTime; //would be set if UpdateSkybox were used.
        if (light != null)
        { light.enabled = true; }
        currentPhase = DayPhase.Dawn;
    }
 
    /// <summary>
    /// Sets the currentPhase to Day, ensuring full day color ambient light, and full
    /// directional light intensity, if any.
    /// </summary>
    public void SetDay()
    {
        RenderSettings.skybox = daySkybox; //would be commented out or removed if UpdateSkybox were used.
        //remainingTransition = skyTransitionTime; //would be set if UpdateSkybox were used.
        RenderSettings.ambientLight = fullLight;
        if (light != null)
        { light.intensity = lightIntensity; }
        currentPhase = DayPhase.Day;
    }
 
    /// <summary>
    /// Sets the currentPhase to Dusk.
    /// </summary>
    public void SetDusk()
    {
        RenderSettings.skybox = dawnDuskSkybox; //would be commented out or removed if UpdateSkybox were used.
        //remainingTransition = skyTransitionTime; //would be set if UpdateSkybox were used.
        currentPhase = DayPhase.Dusk;
    }
 
    /// <summary>
    /// Sets the currentPhase to Night, ensuring full night color ambient light, and
    /// turning off the directional light, if any.
    /// </summary>
    public void SetNight()
    {
        RenderSettings.skybox = nightSkybox; //would be commented out or removed if UpdateSkybox were used.
        //remainingTransition = skyTransitionTime; //would be set if UpdateSkybox were used.
        RenderSettings.ambientLight = fullDark;
        if (light != null)
        { light.enabled = false; }
        currentPhase = DayPhase.Night;
    }
 
    /// <summary>
    /// If the currentPhase is dawn or dusk, this method adjusts the ambient light color and direcitonal
    /// light intensity (if any) to a percentage of full dark or full light as appropriate. Regardless
    /// of currentPhase, the method also rotates the transform of this component, thereby rotating the
    /// directional light, if any.
    /// </summary>
    private void UpdateDaylight()
    {
        if (currentPhase == DayPhase.Dawn)
        {
            float relativeTime = currentCycleTime - dawnTime;
            RenderSettings.ambientLight = Color.Lerp(fullDark, fullLight, relativeTime / quarterDay);
            if (light != null)
            { light.intensity = lightIntensity * (relativeTime / quarterDay); }
        }
        else if (currentPhase == DayPhase.Dusk)
        {
            float relativeTime = currentCycleTime - duskTime;
            RenderSettings.ambientLight = Color.Lerp(fullLight, fullDark, relativeTime / quarterDay);
            if (light != null)
            { light.intensity = lightIntensity * ((quarterDay - relativeTime) / quarterDay); }
        }
 
        transform.Rotate(Vector3.up * ((Time.deltaTime / dayCycleLength) * 360.0f), Space.Self);
  }
 
    /// <summary>
    /// Interpolates the fog color between the specified phase colors during each phase's transition.
    /// eg. From DawnDusk to Day, Day to DawnDusk, DawnDusk to Night, and Night to DawnDusk
    /// </summary>
    private void UpdateFog()
    {
        if (currentPhase == DayPhase.Dawn)
        {
            float relativeTime = currentCycleTime - dawnTime;
            RenderSettings.fogColor = Color.Lerp(dawnDuskFog, dayFog, relativeTime / quarterDay);
        }
        else if (currentPhase == DayPhase.Day)
        {
            float relativeTime = currentCycleTime - dayTime;
            RenderSettings.fogColor = Color.Lerp(dayFog, dawnDuskFog, relativeTime / quarterDay);
        }
        else if (currentPhase == DayPhase.Dusk)
        {
            float relativeTime = currentCycleTime - duskTime;
            RenderSettings.fogColor = Color.Lerp(dawnDuskFog, nightFog, relativeTime / quarterDay);
        }
        else if (currentPhase == DayPhase.Night)
        {
            float relativeTime = currentCycleTime - nightTime;
            RenderSettings.fogColor = Color.Lerp(nightFog, dawnDuskFog, relativeTime / quarterDay);
        }
    }
 
    //Not yet implemented, but would be nice to allow a smoother transition of the Skybox material.
    //private void UpdateSkybox()
    //{
    //    if (remainingTransition > 0.0f)
    //    {
    //        if (currentPhase == DayCycle.Dawn)
    //        {
    //            http://RenderSettings.skybox.Lerp(dawnDuskSkybox, nightSkybox, remainingTransition / skyTransitionTime);
    //        }
    //        if (currentPhase == DayCycle.Day)
    //        {
 
    //        }
    //        if (currentPhase == DayCycle.Dusk)
    //        {
 
    //        }
    //        if (currentPhase == DayCycle.Night)
    //        {
 
    //        }
    //        remainingTransition -= Time.deltaTime;
    //    }
    //}
 
    /// <summary>
    /// Updates the World-time hour based on the current time of day.
    /// </summary>
    private void UpdateWorldTime()
    {
        worldTimeHour = (int)((Mathf.Ceil((currentCycleTime / dayCycleLength) * hoursPerDay) + dawnTimeOffset) % hoursPerDay) + 1;
    }
 
    public enum DayPhase
    {
        Night = 0,
        Dawn = 1,
        Day = 2,
        Dusk = 3
    }
}
avatar
MrTFGamer1
Desenvolvedor

Masculino PONTOS : 534
REPUTAÇÃO : 14
Idade : 16
Áreas de atuação : Adobe Premiere CS6
Adobe After Effects CS6
Unity
Modelagem
Design Gráfico
Programação [Iniciante]
Et
Respeito as regras :

Ver perfil do usuário http://facebook.com/carsinfixabrazil

Voltar ao Topo Ir em baixo

DÚVIDA Re: -[COMO RESOLVO ESTE ERRO DO SCRIPT??]-

Mensagem por g em Sab Jun 17, 2017 6:57 pm

O nome do script tem q ser o mesmo que a 
public class 


Esse nome aqui > DayNightController
avatar
g
Membro
Membro

Masculino PONTOS : 121
REPUTAÇÃO : 7
Áreas de atuação : Iniciante em C#, Modelagem
Respeito as regras :

Ver perfil do usuário

Voltar ao Topo Ir em baixo

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo

- Tópicos similares

 
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum