void Start() { vin = FindObjectOfType <VinMov>(); pathfinder = GetComponent <Pathfinder>(); rigidbody = GetComponent <Rigidbody>(); laser.transform.forward = transform.forward; }
void Start() { VL = GetComponent <VinLife>(); //sounds = GetComponents<AudioSource>(); layerMask = LayerMask.GetMask("controllable"); mov = GetComponent <VinMov>(); mainCam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <VinCamera1>(); }
void Start() { target = GameObject.FindGameObjectWithTag("Vin").GetComponent <Transform>(); defaultTarget = target; targetMoveScript = target.GetComponent <VinMov>(); targetRB = target.GetComponent <Rigidbody>(); toVarsPosition(target.position); targetMaxPossibleSpeed = targetMoveScript.getMaxPossibleSpeed(); }