예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     // Get Components
     rBody           = GetComponent <Rigidbody2D>();
     playerRigidbody = GameObject.Find("Player").GetComponent <Rigidbody2D>();
     sc = GetComponent <SpectreController>();
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     // Fill Health
     health = maxHealth;
     // Get Components
     rBody = GetComponent <Rigidbody2D>();
     sc    = GetComponent <SpectreController>();
 }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        // Declare end path
        endPath = new Vector2(0, 0);

        // Get Components
        rBody           = GetComponent <Rigidbody2D>();
        playerRigidbody = GameObject.Find("Player").GetComponent <Rigidbody2D>();
        sc = GetComponent <SpectreController>();
    }