Пример #1
0
 /// <summary>
 /// Sets the collider of the sprite.
 /// </summary>
 /// <param name="collider">Collider to set.</param>
 public void SetCollider(Physics.Collider collider)
 {
     this.collider = collider;
 }
Пример #2
0
 /// <summary>
 /// Sets collider for the sprite
 /// </summary>
 /// <param name="key">Sprite to set collider for</param>
 /// <param name="collider">Collider to use.</param>
 public void SetCollider(string key, Physics.Collider collider)
 {
     sprites[key].SetCollider(collider);
 }