示例#1
0
 private void Start()
 {
     my_audioSource  = GetComponent <AudioSource>();
     popupController = GameObject.FindWithTag("Player").GetComponent <PopupDamageController>();
     boxCol          = GetComponent <BoxCollider>();
     player          = GetComponent <GameObject>();
     juiceMeter      = Locator.instance.GetJuiceMeter();
 }
示例#2
0
    private void Start()
    {
        my_audioSource = GetComponent <AudioSource>();

        popupController = GameObject.FindWithTag("Player").GetComponent <PopupDamageController>();
        if (testFight == null)
        {
            testFight = GameObject.FindWithTag("TestFight").GetComponent <TestFight>();
        }
    }
示例#3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }