public override void Start()
 {
     base.Start();
     instance = this;
 }
示例#2
0
 void Awake()
 {
     instance = this;
 }
 public void OnDestroy()
 {
     instance = null;
 }