【发布时间】:2016-04-23 23:50:21
【问题描述】:
谁能告诉我为什么我的游戏对象没有再次激活?
谢谢。
C# 代码
using UnityEngine;
using System.Collections;
public class SlowerPowerUP : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (BirdMovement.CountFS > 300) {
gameObject.SetActive(true);
}
else {
gameObject.SetActive(false);
}
}
}
【问题讨论】:
-
当你给我的问题打分时,告诉我为什么?!
-
您将需要添加更多相关代码,缺少太多部分。
-
请提供预期的行为、运行程序时的任何错误消息以及与问题相关的所有代码。如果有很多代码,请将其发布在 gist 或 pastebin 文件中。
标签: c# unity3d activation gameobject