c#
1public class ForceFloor : MonoBehaviour { 2 void OnControllerColliderHit ( ControllerColliderHit col ){ 3 if(col.gameObject.tag == "FallBlock") { 4 col.gameObject.GetComponent<FallBlock>().ReceiveForce(); /////'FallBlock.RecieveForce()'is inaccessible due to its protection level 5 } 6 } 7}
上記は主人公キャラが床に乗っている事を知らせるスクリプトなのですが、/////以降のエラーが発生します。改善点をお教え願います。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。