| //-------------------------------------------------------- | 
| //    [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); | 
|         } | 
|   | 
|     } |