コード例 #1
0
    void Start()
    {
        hundGun = GetComponent <HundGun>();
        knife   = GetComponent <Knife>();
        sources = gameObject.GetComponents <AudioSource>();
        GameObject canvas = GameObject.Find("Canvas");

        sw = canvas.GetComponent <SelectWepon>();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        FlypanFlag = false;
        GameObject canvas = GameObject.Find("Canvas");

        cm = canvas.GetComponent <CoordinateManage>();
        rd = GetComponent <RabitDamage>();
        sw = canvas.GetComponent <SelectWepon>();
    }
コード例 #3
0
    void Start()
    {
        dxBuf = 0;
        dyBuf = -1;

        knife   = GetComponent <Knife>();
        hundGun = GetComponent <HundGun>();
        flypan  = GetComponent <FlyPan>();
        sources = gameObject.GetComponents <AudioSource>();
        GameObject canvas = GameObject.Find("Canvas");

        sw = canvas.GetComponent <SelectWepon>();
    }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        sources = gameObject.GetComponents <AudioSource>();
        GameObject canvas  = GameObject.Find("Canvas");
        GameObject switch0 = GameObject.Find("Switch");

        sw = canvas.GetComponent <SelectWepon>();
        mw = canvas.GetComponent <MessageWindow>();
        if (SceneManager.GetActiveScene().name == "Hard Full")
        {
            ss = switch0.GetComponent <StageSwitch>();
        }
        myText = mw.pauseUI.GetComponentInChildren <Text>();
    }