コード例 #1
0
ファイル: SRopeIdle.cs プロジェクト: mmcgaha/SuperMarioBros
        public SRopeIdle(IRope rope, int height)
        {
            this.Rope   = rope;
            this.height = height;

            SetHitbox();
        }
コード例 #2
0
ファイル: RopeSet.cs プロジェクト: razzie/PocceMod
 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 }
         });
     }
 }
コード例 #3
0
    private void Start()
    {
        StartSets();

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