示例#1
0
        public SRopeIdle(IRope rope, int height)
        {
            this.Rope   = rope;
            this.height = height;

            SetHitbox();
        }
示例#2
0
 public void AddRope(IRope rope)
 {
     if (_ropes.TryGetValue(rope.Player, out Dictionary <int, IRope> playerRopes))
     {
         playerRopes.Add(rope.ID, rope);
     }
     else
     {
         _ropes.Add(rope.Player, new Dictionary <int, IRope> {
             { rope.ID, rope }
         });
     }
 }
    private void Start()
    {
        StartSets();

        rope = new Rope(lineRenderer, distanceJoint2D);
    }
示例#4
0
 public IRope Concatenate(IRope r)
 {
     rope_append((Rope)r);
     return(this);
 }
 public RopeCollisionHandler(IRope rope)
 {
     this.subject = rope;
 }