Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     player     = transform.GetComponentInChildren <Playercontroller>();
     enemies    = transform.Find("Enemies").gameObject;
     enemies2   = transform.Find("Enemies2").gameObject;
     scoreBoard = transform.GetComponentInChildren <TextMeshPro>();
 }
 // Start is called before the first frame update
 void Start()
 {
     player = this;
     rb     = GetComponent <Rigidbody2D>();
     bulletTimeEffect.SetActive(false);
     QualitySettings.vSyncCount = 0;
 }
 void Start()
 {
     g_game_Con_Script    = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     g_player_sporn       = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_hintScript         = GameObject.Find("Stageinformation").GetComponent <HintScript>();
     g_dice_create_Script = this.GetComponent <Dice_Create>();
 }
    // Use this for initialization
    void Start()
    {
        cam1.SetActive(true);
        cam2.SetActive(false);

        player       = FindObjectOfType <Playercontroller>();
        cameraOffset = gameObject.transform.position - player.transform.position;
    }
    // Use this for initialization
    void Start()
    {
        SetScoreText();
        score = 0;

        GameObject player = GameObject.FindGameObjectWithTag("Player");

        playerController = player.GetComponent <Playercontroller>();
    }
Exemple #6
0
 void Start()
 {
     totalcointext.text = PlayerPrefs.GetInt("Totalcoins", 0).ToString();
     totalcoin          = PlayerPrefs.GetInt("Totalcoins", 0);
     InvokeRepeating("Powerspawn", 70f, 80f);
     InvokeRepeating("Spawnshoes", 50f, 50f);
     InvokeRepeating("coin", 3f, 2f);
     playercontroller = GetComponent <Playercontroller>();
 }
Exemple #7
0
    // Use this for initialization
    void Start()
    {
        playercontroller = GameObject.FindGameObjectWithTag("Player").GetComponent <Playercontroller>();



        mousecursor = new Pausecursor();
        mousecursor.HideCursor();
    }
Exemple #8
0
 private void Start()
 {
     g_game_con_Script    = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     g_player_con_Script  = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_direction_Script   = GameObject.Find("Player_Controller").GetComponent <Player_Direction>();
     g_dice_create_Script = GameObject.Find("Stage_Pool").GetComponent <Dice_Create>();
     g_trouble_Script     = GameObject.Find("TroubleObj").GetComponent <TroubleScr>();
     Array_Reset();
 }
Exemple #9
0
 // Start is called before the first frame update
 void Start()
 {
     //プレイヤーの情報を取得
     g_playercontroller = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     //g_potision_script = GameObject.FindGameObjectWithTag("Player").GetComponent<Playermove>();
     //ブロックのタイプを取得
     g_tyep_script = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     //g_check_vsh = g_potision_script.Get_potision(g_check_v, g_check_s, g_check_h);
     g_getdate = true;
 }
    private void OnTriggerEnter2D(Collider2D collision)
    {
        Playercontroller player = collision.GetComponent <Playercontroller>();

        if (player != null)
        {
            Debug.Log("yes");
            player.checkIfGrounded = false;
        }
    }
Exemple #11
0
 // Use this for initialization
 void Start()
 {
     ShootAttack          = JsonLoader.attacks.DistanceAttacks[indexGun];
     TempField            = FieldOfFire;
     Shootangle           = angle;
     viewShootAngle       = DirFromAngle(Shootangle, false);
     MaxIntense           = ShootLight.intensity;
     ShootLight.intensity = 0;
     PC = Donovan.GetComponent <Playercontroller>();
     AmmoDonovan.TotalAmmo = TotalAmmo;
     AmmoDonovan.AmmoInMag = ShootAttack.Magazine;
 }
 void Start()
 {
     g_trouble_Script     = GameObject.Find("TroubleObj").GetComponent <TroubleScr>();
     g_result_Script      = GameObject.Find("Stageinformation").GetComponent <ResultScript>();
     g_clear_Script       = GameObject.Find("Game_Controller").GetComponent <Stage_Clear>();
     g_folder_Script      = GameObject.Find("Stageinformation").GetComponent <Folder_Script>();
     g_information_Script = GameObject.Find("Stageinformation").GetComponent <StageInformation>();
     g_game_con_Script    = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     g_player_Script      = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_player_anim_Script = this.GetComponent <Player_Animation>();
     g_player_obj         = this.gameObject;
 }
Exemple #13
0
    // Start is called before the first frame update
    void Start()
    {
        playercontroller  = GameObject.Find("Player").GetComponent <Playercontroller>();
        enemyDetectplayer = GetComponentInChildren <EnemyDetectplayer>();
        E_anim            = GetComponentInChildren <Animator>();

        Enemy_agent = GetComponent <NavMeshAgent>();

        {
            InvokeRepeating("WalkRandomly", Random.Range(1, 3), Random.Range(2.5f, 6f));
        }

        EnemyRB = GetComponent <Rigidbody>();
    }
Exemple #14
0
 void Start()
 {
     g_player_con_Script    = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_parent_rotate_Script = GameObject.Find("Dice_Controller").GetComponent <Parent_All_Rotation>();
     g_trouble_script       = GameObject.Find("TroubleObj").GetComponent <TroubleScr>();
     g_dice_Script          = this.GetComponent <Dice_Squares>();
     g_se_source_Script     = GameObject.Find("SEList").GetComponent <Se_Source>();
     //操作オブジェクト取得
     g_dice_Obj = this.gameObject;
     //サイズを求める
     g_dice_Size = g_dice_Obj.transform.localScale.x / g_size_change;
     //回転速度の初期化
     g_rotation_Speed = g_start_rotation_Speed;
 }
Exemple #15
0
 void Start()
 {
     g_player_Obj              = this.gameObject;
     g_json_Script             = GameObject.Find("Game_Controller").GetComponent <Input_Data>();
     g_game_con_Script         = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     g_play_con_Script         = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_direction_Script        = GameObject.Find("Player_Controller").GetComponent <Player_Direction>();
     g_dice_con_Script         = GameObject.Find("Dice_Controller").GetComponent <Dice_Controller>();
     g_appearance_move_Script  = this.GetComponent <Player_Appearance_Move>();
     g_anim_Script             = this.GetComponent <Player_Animation>();
     g_xbox_Script             = this.GetComponent <PlayerXbox>();
     g_playerDirectXbox_Script = this.GetComponent <PlayerDirectXbox>();
     //配列の最大値を取得
     (g_max_ver, g_max_side, g_max_high) = g_json_Script.Get_Array_Max();
 }
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player" && this.tag == "Animal")
     {
         Playercontroller player = other.GetComponent <Playercontroller>();
         player.LoseHP();
         Debug.Log(player.health);
         Destroy(gameObject);
     }
     else if (this.tag != "Projectile")
     {
         Destroy(other.gameObject);
         Destroy(gameObject);
     }
 }
Exemple #17
0
 private void Start()
 {
     player = FindObjectOfType <Playercontroller>();
 }
Exemple #18
0
 void Start()
 {
     g_player_con_Script = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_move_Script       = this.GetComponent <Player_Appearance_Move>();
     g_player_Anim       = g_player_obj.GetComponent <Animator>();
 }
 void Start()
 {
     g_player_con_Script    = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_parent_rotate_Script = GetComponent <Parent_All_Rotation>();
 }
Exemple #20
0
 // Use this for initialization
 void Start()
 {
     bomb       = GetComponent <Animator>();
     gamePlayer = FindObjectOfType <Playercontroller>();
 }
 // Start is called before the first frame update
 void Start()
 {
     player = FindObjectOfType <Playercontroller>();
     rb     = GetComponent <Rigidbody>();
     nma    = this.GetComponent <NavMeshAgent>();
 }
Exemple #22
0
 public void setPlayerController(Playercontroller playercontroller)
 {
     this.playercontroller = playercontroller;
 }
Exemple #23
0
 void Start()
 {
     g_game_Con_Script   = GameObject.Find("Game_Controller").GetComponent <Game_Controller>();
     g_player_con_Script = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_se_source_Script  = GameObject.Find("SEList").GetComponent <Se_Source>();
 }
 public RotateRight(Playercontroller playerController) : base(playerController)
 {
 }
 // Start is called before the first frame update
 void Start()
 {
     player = GetComponentInParent <Environment>().player;
 }
 // Start is called before the first frame update
 void Start()
 {
     player      = FindObjectOfType <Playercontroller>();
     isFollowing = true;
 }
Exemple #27
0
 // Start is called before the first frame update
 void Start()
 {
     cntrl = GetComponent <Playercontroller>();
 }
Exemple #28
0
 public MoveForward(Playercontroller playerController) : base(playerController)
 {
 }
 // Use this for initialization
 void Start()
 {
     playerController = GetComponent <Playercontroller>();
 }
Exemple #30
0
 // Start is called before the first frame update
 void Start()
 {
     playerControllerScript = GameObject.Find("Player").GetComponent <Playercontroller>();
     //InvokeRepeating("SpawnRandomAnimal", startDelay, spawnInterval);
     Invoke("SpawnRandomAnimal", (Random.Range(repeatRateMin, repeatRateMax)));
 }