예제 #1
0
    // Use this for initialization
    void Start()
    {
        HJS = GameObject.Find("Barrel").GetComponent <HitJudgmentScript>();

        MS = GameObject.Find("ManagementButtonFlag").GetComponent <ManagementScript>();

        SB = GameObject.Find("StartButton").GetComponent <StartButton>();

        MoveArrow = 0;

        // ボタンの初期座標を代入
        parentPosition = gameObject.transform.position;
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        HJS          = GameObject.Find("Barrel").GetComponent <HitJudgmentScript>();
        canAnimation = GetComponent <Animator>();
        endFlag      = false;
        pos          = GameObject.Find("Akicanman").transform.position;

        resetButton = GameObject.Find("ResetButton");
        resetButton.SetActive(false);

        for (int i = 0; i < gameoverObj.Length; i++)
        {
            gameoverObj[i].SetActive(false);
        }
    }