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