Пример #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
 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>();
 }