コード例 #1
0
    // Update is called once per frame
    private void Update()
    {
        body = crewController.GetPositionGameobject(1).Char.GetComponent <Rigidbody2D>();
        var main = body.GetComponent <PathMover>();

        if (main)
        {
            main.MainChar = true;
        }
    }