// Use this for initialization void Start() { rigi = GetComponent <Rigidbody2D> (); GameObject pLaserSight = (GameObject)Instantiate(lasersightPrefab, Vector3.zero, Quaternion.identity); laserSight = pLaserSight.GetComponent <LineRenderer>(); Hooking = GetComponent <GrappingHook>(); }
// Start is called before the first frame update void Start() { hookScript = GetComponent <GrappingHook>(); animator = GetComponent <ArmsAnimatorBehabior>(); }