Factorisation des Usable
This commit is contained in:
parent
5b787c7da6
commit
4aa2aef787
7 changed files with 34 additions and 31 deletions
|
@ -59,8 +59,8 @@ public class Workshop : MonoBehaviour, IUsable
|
|||
{
|
||||
if(gameObject.layer != LayerMask.NameToLayer("Interactions"))
|
||||
Debug.LogWarning(gameObject.name+" layer should be set to 'Interactions' to work properly");
|
||||
if(gameObject.tag != "Workshop")
|
||||
Debug.LogWarning(gameObject.name+" tag should be set to 'Workshop' to work properly");
|
||||
if(gameObject.tag != "Usable")
|
||||
Debug.LogWarning(gameObject.name+" tag should be set to 'Usable' to work properly");
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue