示例#1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(gameObject);
     }
 }
示例#2
0
 void awake()
 {
     instance = this;
 }
示例#3
0
 // Update is called once per frame
 void Start()
 {
     parent = gameObject.GetComponentInParent <platformManager>();
 }