コード例 #1
0
 void Start()
 {
     player         = GameObject.FindGameObjectWithTag("Player");
     GM             = FindObjectOfType <GameManager>();
     path           = player.GetComponent <CustomPathAI>();
     pathController = GameObject.Find("A*").GetComponent <AstarPath>();
 }
コード例 #2
0
    void Start()
    {
        rb          = this.GetComponent <Rigidbody2D>();
        rb.bodyType = RigidbodyType2D.Static;

        path = player.GetComponent <CustomPathAI>();
        pathControllerScript = pathController.GetComponent <AstarPath>();
    }
コード例 #3
0
    void Start()
    {
        path = player.GetComponent <CustomPathAI>();

        rb = player.GetComponent <Rigidbody2D>();

        ladderBase = ladderB.transform.position;
        ladderTop  = ladderT.transform.position;
    }
コード例 #4
0
 // Start is called before the first frame update
 void Start()
 {
     path           = player.GetComponent <CustomPathAI>();
     GM             = FindObjectOfType <GameManager>();
     fallScript     = GetComponent <SpikeFall>();
     spriteRenderer = GetComponent <SpriteRenderer>();
     rb             = GetComponent <Rigidbody2D>();
     playerRb       = player.GetComponent <Rigidbody2D>();
     localScale     = transform.localScale;
 }
コード例 #5
0
ファイル: cageFall.cs プロジェクト: zSUP3RSA1YANz/Year3_Game
 void Start()
 {
     path    = player.GetComponent <CustomPathAI>();
     GM      = FindObjectOfType <GameManager>();
     spikeRb = spike.GetComponent <Rigidbody2D>();
 }
コード例 #6
0
 void Start()
 {
     path = player.GetComponent <CustomPathAI>();
     GM   = FindObjectOfType <GameManager>();
 }
コード例 #7
0
 void Start()
 {
     path = player.GetComponent <CustomPathAI>();
     lightEffect.SetActive(false);
 }
コード例 #8
0
 // Start is called before the first frame update
 void Start()
 {
     path = player.GetComponent <CustomPathAI>();
 }