You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
621 B
C#
22 lines
621 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Autohand {
|
|
public class IgnoreHandPlayerCollision : MonoBehaviour {
|
|
public List<Collider> colliders;
|
|
|
|
void Start() {
|
|
ActivateIgnoreCollision();
|
|
}
|
|
|
|
public void ActivateIgnoreCollision() {
|
|
foreach(var col in colliders)
|
|
AutoHandPlayer.Instance.IgnoreCollider(col, true);
|
|
}
|
|
public void DeactivateIgnoreCollision() {
|
|
foreach(var col in colliders)
|
|
AutoHandPlayer.Instance.IgnoreCollider(col, false);
|
|
}
|
|
}
|
|
} |