Exemplo n.º 1
0
 public void DoStateAction(Tentacle tentacle)
 {
     headDistance_ = Vector3.Distance(tentacle_.Head_.transform.position, target_.transform.position);
     if (headDistance_ <= nextPartDistance_)
     {
         nextPartDistance_ = headDistance_ - bodyPartRadius_;
         tentacle_.CreateBodyPart();
     }
     HandleExtensionMovement();
 }