Пример #1
0
 // Use this for initialization
 void Start()
 {
     cameraDammyObj      = GameObject.Find("CameraDammy").GetComponent <CameraControl>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     player    = GameObject.Find("player").transform.GetComponent <PlayerMove>();
     cameraPos = Camera.main.transform.position;
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     player              = GameObject.FindGameObjectWithTag("Player");
     playerMove          = player.GetComponent <PlayerMove>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     transform.position  = player.transform.position - playerDistance;
 }
Пример #3
0
 void Start()
 {
     //色々代入
     rigidBodyInfo       = GetComponent <Rigidbody>();
     cameraDammyObj      = GameObject.Find("CameraDammy");
     isPlayerController  = gameObject.GetComponent <CharacterController>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     animator            = GetComponent <Animator>();
     targetMakerObj      = Resources.Load("CanvasTarget/Target") as GameObject;
     playerShoot         = gameObject.GetComponent <PlayerShoot>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     dammyCampos                 = transform.position;
     player                      = PlayerObj.transform.GetComponent <PlayerMove>();
     mousepos                    = Input.mousePosition;
     mousepos2                   = mousepos;
     flagsInStageManager         = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     MainCamera                  = MainCameraObj.transform.GetComponent <MainCameraControl>();
     CameraAngle                 = Vector3.zero;
     Application.targetFrameRate = 60;
 }
Пример #5
0
 void Start()
 {
     se      = gameObject.GetComponent <AudioSource>();
     se.loop = false;
     se.PlayOneShot(sound);
     second              = 0;
     counter             = 0;
     player              = GameObject.FindGameObjectWithTag("Player");
     playerMove          = player.GetComponent <PlayerMove>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
 }
Пример #6
0
    public float interval = 0.1f; //何秒おきに発砲するか

    //AudioSouceコンポーネントを取得
    //  public AudioSource sound;
    //Audioファイルを代入
    //   public AudioClip shotSound; //発砲音を代入

    void Start()
    {
        //     sound = this.gameObject.GetComponent<AudioSource>();    //Audio Sourceコンポーネントを代入
        player = GameObject.Find("player");
        //  camera_s = GameObject.Find("CameraDammy");
        //trg = GameObject.Find("trigger");
        trg        = gameObject.transform.FindChild("TrgObj").gameObject;
        playerMove = player.GetComponent <PlayerMove>();
        rifle      = player.transform;
        //cameracontrol = camera_s.GetComponent<CameraControl>();
        flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
        animator            = GetComponent <Animator>();
        se      = gameObject.GetComponent <AudioSource>();
        se.loop = false;
        bullet  = Resources.Load("FireMagic1") as GameObject;
    }
Пример #7
0
    //初期化しゅるぅうううう
    void talkProcessInit()
    {
        sTalkWindow = Resources.Load("CanvasTalkMini") as GameObject;
        bTalkWindow = Resources.Load("CanvasTalkBig") as GameObject;

        talksetting = GameObject.Find("GameObject").GetComponent <TalkSettings>();

        //	audioSource = gameObject.GetComponent<AudioSource>();

        for (int i = 0; i < 2000; i++)
        {
            talkClass[i] = new talk();
            talkClass[i].talkInit();
        }

        flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
    }
Пример #8
0
    // Use this for initialization
    void Start()
    {
        gm     = GameObject.Find("GameManager").GetComponent <GameManager>();
        encPop = GameObject.Find("Encount").GetComponent <EncountPopUp>();
        pos    = transform.position;
        flagsInStageManager    = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
        canvasTargetControlObj = GameObject.Find("GameControlObject");
        mainCam   = GameObject.FindGameObjectWithTag("MainCamera");
        battleCam = GameObject.Find("BattleCamera");
        se        = gameObject.GetComponent <AudioSource>();
        se.loop   = false;

        childObject        = gameObject.transform.FindChild("DistanceCheck").gameObject;
        childPos           = childObject.transform.position;
        distancePos        = (childPos - pos) * 2;
        distancePosQuarter = (childPos + (distancePos / 2));
        EncFlag            = true;
    }
Пример #9
0
    void Start()
    {
        doorCount = 0;
        open      = false;
        fm        = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
        gm        = GameObject.FindGameObjectWithTag("GM").GetComponent <GameManager>();
        talk      = GameObject.Find("GameControlObject").GetComponent <TalkProcess>();
        switch (doorType)
        {
        // ドアの種類とステージの判別
        case DoorType.Tutorial_Red:
            doorCount = 1;
            stage     = 0;
            break;

        case DoorType.Tutorial_Blue:
            doorCount = 2;
            stage     = 0;
            break;

        case DoorType.Stage1_Right:
            doorCount = 1;
            stage     = 1;
            break;

        case DoorType.Stage1_Left:
            doorCount = 2;
            stage     = 1;
            break;

        case DoorType.Stage1_Rock:
            doorCount = 3;
            stage     = 1;
            break;

        case DoorType.Stage1_Blue:
            doorCount = 4;
            stage     = 1;
            break;
        }
    }
Пример #10
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.Find("player").GetComponent <PlayerMove>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
 }
Пример #11
0
 // Use this for initialization
 void Start()
 {
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     playerMove          = GameObject.Find("player").GetComponent <PlayerMove>();
     guardEffect         = gameObject.transform.FindChild("GuardEffect").gameObject;
 }
Пример #12
0
 // Use this for initialization
 void Start()
 {
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     canvasTarget        = Resources.Load("CanvasTarget") as GameObject;
 }
Пример #13
0
 // Use this for initialization
 void Start()
 {
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
     mainCameraControl   = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MainCameraControl>();
 }
Пример #14
0
 // Use this for initialization
 void Start()
 {
     boxCollider         = gameObject.GetComponent <BoxCollider>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
 }
 // Use this for initialization
 void Start()
 {
     fieldBGM            = GameObject.Find("FieldBGM").GetComponent <AudioSource>();
     battleBGM           = GameObject.Find("BattleBGM").GetComponent <AudioSource>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
 }
Пример #16
0
 // Use this for initialization
 void Start()
 {
     animator            = GetComponent <Animator>();
     flagsInStageManager = GameObject.Find("GameControlObject").GetComponent <FlagsInStageManager>();
 }