// 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>(); }
// Start is called before the first frame update void Start() { player = GameObject.Find("Player"); playmotion = player.GetComponent <PlayMotion>(); materiaPanel.SetActive(false); materiaPanel2.SetActive(false); }
// 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>(); }
//コンポーネントの取得 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; } }
// Start is called before the first frame update void Start() { player = GameObject.Find("Player"); playmotion = player.GetComponent <PlayMotion>(); }
// Start is called before the first frame update void Start() { GameObject objColliderTriggerParent = gameObject.transform.root.gameObject; colliderTriggerParent = objColliderTriggerParent.GetComponent <PlayMotion>(); }