Показать сообщение отдельно
Старый 26.02.2013, 23:25   #1
mepihin
ПроЭктировщик
 
Регистрация: 31.12.2012
Сообщений: 165
Написано 5 полезных сообщений
(для 7 пользователей)
Проблема испорта GUI

есть скрипт:
using UnityEngine;
using System.Collections;

public class 
GUIHelp MonoBehaviour {
    
    private 
GUIText help;
    
    
void Start()
    {
        
help GameObject.Find("Help").guiText;
        
RandomText();
    }
    
    
void RandomText()
    {
        
help.text "Press R to restart the game";
        yield return new 
WaitForSeconds (3);
        
help.text "Choose red or blue player to bet";
        yield return new 
WaitForSeconds (3);
        
help.text "Play with your friends and win their";
        yield return new 
WaitForSeconds (3);
        
help.text "The victory of a player you can at the top of the screen";
    }
    

Пишет:
Assets/Scripts/GUIHelp.cs(14,14): error CS1624: The body of `GUIHelp.RandomText()' cannot be an iterator block because `void' is not an iterator interface type
Что сделать, напишите пожалуйста
(Offline)
 
Ответить с цитированием