コード例 #1
0
ファイル: AiProxy.cs プロジェクト: RainsSoft/MassiveNet
        void Awake() {
            view = GetComponent<NetView>();
            controller = GetComponent<NetController>();
            catAnimator = GetComponentInChildren<CatAnimator>();

            // Note: Always register OnReadInstantiateData delegate in Awake
            // OnReadInstantiateData is called immediately after a View is created, so registering
            // in Start instead of Awake means you might miss out on the instantiate data.
            view.OnReadInstantiateData += Instantiate;
        }
コード例 #2
0
ファイル: AiProxy.cs プロジェクト: asseln/test_repository
        void Awake()
        {
            view        = GetComponent <NetView>();
            controller  = GetComponent <NetController>();
            catAnimator = GetComponentInChildren <CatAnimator>();

            // Note: Always register OnReadInstantiateData delegate in Awake
            // OnReadInstantiateData is called immediately after a View is created, so registering
            // in Start instead of Awake means you might miss out on the instantiate data.
            view.OnReadInstantiateData += Instantiate;
        }