[Style] GetComponent null체크 추가
This commit is contained in:
parent
b8ea0892b8
commit
bec98caa29
@ -19,7 +19,10 @@ public class InteractionController : MonoBehaviour
|
||||
if (interactionLayerMask == (interactionLayerMask | (1 << other.gameObject.layer)))
|
||||
{
|
||||
ActionType interactionType = other.gameObject.GetComponent<InteractionProp>().RoutineEnter();
|
||||
PopActionOnScreen(interactionType);
|
||||
if( interactionType != null )
|
||||
{
|
||||
PopActionOnScreen(interactionType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,6 +94,8 @@ public class InteractionController : MonoBehaviour
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user