示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     //TODO a more extensible way to set weapon's transforms when picked up
     if (projectileLauncher != null)
     {
         projectileLauncher.setParentTransform(this.transform);
     }
     if (secondProjectileLauncher != null)
     {
         secondProjectileLauncher.setParentTransform(this.transform);
     }
 }