觀察者模式和代理模式

觀察者模式:函數 using UnityEngine; using System.Collections; //觀察者模式,不斷詢問程序是否完成了任務 //好比這裏咱們想要在動畫播放1.5秒後發出一個粒子特效,咱們在播放動畫後就在Update函數中 //不斷詢問是否到了1.5秒 public class TestObeserve : MonoBehaviour { public Animat
相關文章
相關標籤/搜索