Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     player            = gameObject.transform.root.gameObject;
     playmotion        = player.GetComponent <PlayMotion>();
     createMateria_flg = true;
     gamemanager       = GameObject.Find("GameManager").GetComponent <GameManager>();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     player     = GameObject.Find("Player");
     playmotion = player.GetComponent <PlayMotion>();
     materiaPanel.SetActive(false);
     materiaPanel2.SetActive(false);
 }
Beispiel #3
0
    // Start is called before the first frame update
    void Start()
    {
        floorMask   = LayerMask.GetMask("Ground");
        fieldMask   = LayerMask.GetMask("Field");
        BodyMask    = LayerMask.GetMask("Body");
        EnemyMask   = LayerMask.GetMask("Enemy");
        CrystalMask = LayerMask.GetMask("Crystal");
        //playerRigidbody = GetComponent <Rigidbody> ();

        player     = gameObject.transform.root.gameObject;
        playmotion = player.GetComponent <PlayMotion>();

        target      = GameObject.FindWithTag("crystal_target");
        gamemanager = GameObject.Find("GameManager").GetComponent <GameManager>();
    }
Beispiel #4
0
 //コンポーネントの取得
 void LoadComponents()
 {
     //タイトル画面じゃないなら取得
     if (SceneManager.GetActiveScene().name != "StartScene")
     {
         playmotion    = GameObject.Find("Player").GetComponent <PlayMotion>();
         cannonforward = GameObject.Find("CannonRotation").GetComponent <CannnonForward>();
         cannonbullet  = GameObject.Find("CannonBulletFire").GetComponent <CannonBullet>();
         Maincamera    = GameObject.FindWithTag("MainCamera").GetComponent <PlayerFollowCamera>();
         target_image  = GameObject.FindWithTag("MainCamera").GetComponent <Target>();
         //enemy = GameObject.Find("CannonBulletFire_Enemy").GetComponent<AttackEnemyMove>();
         playerRigidbody      = GameObject.Find("Player").GetComponent <Rigidbody>();
         game_stop_flg        = false;
         pause_flg            = false;
         target_image.enabled = true;
     }
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     player     = GameObject.Find("Player");
     playmotion = player.GetComponent <PlayMotion>();
 }
Beispiel #6
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject objColliderTriggerParent = gameObject.transform.root.gameObject;

        colliderTriggerParent = objColliderTriggerParent.GetComponent <PlayMotion>();
    }