Пример #1
0
 public override void OnEquipped()
 {
     isEquipped = true;
     data       = (GrapplingGunData)itemData;
     if (orientation == null)
     {
         orientation = transform.parent;
     }
     if (player == null)
     {
         player = data.ownerEntity.transform;
     }
     if (gunTip == null)
     {
         gunTip = transform.GetChild(0).transform;
     }
 }
Пример #2
0
 void Start()
 {
     lr   = GetComponent <LineRenderer>();
     data = (GrapplingGunData)itemData;
 }