void Update() { if (Lance == null) { Lance = Instantiate(PrefabLance, LancePosition, LanceRotation); Lance.transform.parent = gameObject.transform; } }
void Start() { Lance = GetComponentInChildren <LanceScript>(); LancePosition = Lance.transform.position; LanceRotation = Lance.transform.rotation; }