Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(207评价)
优惠后 ¥1899.00优惠前 ¥2499.00 双十一全年最大力度限时优惠
1对1 答疑即时回复7天无理由退款30天价保提问必答

服务保障

1对1 答疑

提供专属的一对一在线答疑,快速答疑解惑。

即时回复

及时响应学习咨询,帮助解决问题。

7天无理由退款

购买后7天内可申请无理由退款。

30天价保

购买后30天内如遇降价,可申请价保。

提问必答

对于提问做到有问必答,帮您扫清学习过程中的种种障碍

下周学习 2021/5/5

[展开全文]
unitywen · 2021-05-05 · 0

1:mvc 

     m:model

     v : view

     c:controller

    增加可以重用性

2:创建好文件 脚本

3:

[展开全文]
哦你好 · 2018-03-29 · 0

1:mvc 

     m:model

     v : view

     c:controller

    增加可以重用性

2:创建好文件 脚本

 

[展开全文]
哦你好 · 2018-03-29 · 0

mvc

1、分层处理。

2、

[展开全文]
谢谢希望 · 2018-02-13 · 0

总是要去找Ctrl  何不做一个单例类呢

public abstract class InstanceMonoBehavior<T> : MonoBehaviour
    {
        private static T _instance;
        public static T GetInstance()
        {
            return _instance;
        }
        protected virtual void Awake()
        {
            _instance = ReturnInstance();
        }
 
        protected abstract T ReturnInstance();
    }

 

接下来将Ctrl 继承他

public class Ctrl : InstanceMonoBehavior<Ctrl>{

    protected override Ctrl ReturnInstance()
    {
        return this;
    }

}

 

在任何地方都可以使用Ctrl.GetInstance() 获得单例对象

 

 

[展开全文]
oOtroyOo · 2018-02-11 · 0

1.GameManager//核心逻辑属于控制层

Bool IsPause 游戏是否暂停

public Shape[] shapes;

给图形添加脚本Shape

public Clolor[] colors;

void SpawnShape(){

int index=Random.range(0,shape.lenth);

int indexColor=random.range(0,color.lenth);

Shape shape=Gameobject.Instantiate(shapes[index]);

shape.init(colors[indexClolor]);

}

[展开全文]
W1Z1 · 2018-01-14 · 0