using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class Power : MonoBehaviour

{

ย  ย  public GameObject Shield;

ย  ย  public Transform target;

ย  ย  void Start()

ย  ย  {

ย  ย  ย ย 

ย  ย  }


ย  ย  // Update is called once per frame

ย  ย  void Update()

ย  ย  {


ย  ย  ย  ย  Shield.transform.position = target.transform.position;

ย  ย  }

}

ํƒ€๊ฒŸ์ด ์›€์ง์ด๋ฉด ๊ฐ™์ด ์‹ค๋“œ๋„ ๊ฐ™์ด ์›€์ง์ด๋ฉฐ ํƒ€๊ฒŸ์„ ๋ณดํ˜ธย ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

๊ฐ™์ด ์ž˜์€ ์›€์ง์ด๋Š”๋ฐย ๋А๋‚Œํ‘œ๊ฐ€ ๋– ์š”ใ…œ


UnassignedReferenceException: The variable Shield of Power has not been assigned.

You probably need to assign the Shield variable of the Power script in the inspector.

Power.Update () (at Assets/Scripts/Power.cs:18)

๋А๋‚Œํ‘œ ๋‚ด์šฉ์ธ๋ฐ ๋ญ”๊ฐ€ ์ž˜๋ชป ๋œ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ๋˜๋‚˜์š”?