コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     wp          = GameObject.FindGameObjectWithTag("Weaponspanel").GetComponent <Weaponspanel>();
     damageCalc  = gameObject.GetComponent <damageCalculate>();
     axAnimatior = GameObject.FindGameObjectWithTag("Ax").GetComponent <Animator>();
     ax.gameObject.GetComponent <MeshRenderer>().enabled = false;
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     countDown  = delay;
     damageCalc = GameObject.FindGameObjectWithTag("Player").GetComponent <damageCalculate>();
     AS         = gameObject.GetComponent <AudioSource>();
     AS.Play();
     StartCoroutine("healthDecrease");
 }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        damageCalc = gameObject.GetComponent <damageCalculate>();
        winning    = GameObject.FindGameObjectWithTag("win").GetComponent <win>();

        if (Random.Range(0, 2) == 0)
        {
            transform.position = position1;
            beginning          = false;
        }
        else
        {
            transform.position = position2;
            beginning          = false;
        }
        // it hides and locks the curser during the game mode
        Cursor.lockState = CursorLockMode.Locked;
    }
コード例 #4
0
 // Start is called before the first frame update
 void Start()
 {
     damageCalc = transform.GetComponent <damageCalculate>();
     temp       = waitingTime;
 }
コード例 #5
0
 private void Start()
 {
     DC  = GameObject.FindGameObjectWithTag("Player").GetComponent <damageCalculate>();
     CPC = GameObject.FindGameObjectWithTag("collectablesPanel").GetComponent <collectablesPanelController>();
     wp  = GameObject.FindGameObjectWithTag("Weaponspanel").GetComponent <Weaponspanel>();
 }
コード例 #6
0
 // Start is called before the first frame update
 void Start()
 {
     damageCalc = GameObject.FindGameObjectWithTag("Player").GetComponent <damageCalculate>();
     GameObject.FindGameObjectWithTag("Music").GetComponent <AudioSource>().Stop();
     mc = GameObject.FindGameObjectWithTag("Music").GetComponent <musicController>();
 }