yyl
56 分钟以前 fa983b84bcdb05324ea15ee50a76f870c4c3931d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//--------------------------------------------------------
//    [Author]:           玩个游戏
//    [  Date ]:           Monday, July 31, 2017
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
 
    public class GameObjectDefaultActive:MonoBehaviour {
 
        [SerializeField]
        bool m_DefaultActive = true;
        public bool defaultActive {
            get { return m_DefaultActive; }
        }
 
 
        void Awake() {
            this.SetActive(defaultActive);
        }
 
    }