示例#1
0
    //send the ship in this device
    void sendThisShip()
    {
        GameObject thisOne  = Instantiate(thisPirate);
        pirateShip thisShip = thisOne.GetComponent <pirateShip>();

        thisShip.transform.position = this.transform.position;
        thisShip.wandarPoint        = thisPoint;
        thisShip.home           = this;
        this.thisCondition.sent = true;
    }
示例#2
0
 public void receive(pirateShip thisOne)
 {
     if ((thisOne.transform.position - this.transform.position).magnitude < 0.005f)
     {
         Object.Destroy(thisOne.gameObject);
         //userAction.allShipsList.Remove(thisOne);
         //userAction.allTransShipsList.Remove(thisOne);
         userAction.removeFromList(thisOne);
         this.thisCondition.recoverTime = 5000;
     }
 }