コード例 #1
0
    // Use this for initialization
    void Start()
    {
        cameraCollider = gameObject.GetComponent <BoxCollider2D>();
        playerCollider = GameObject.FindGameObjectWithTag("Player").GetComponent <BoxCollider2D>();

        playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Doy>();

        controller = gameObject.GetComponent <Controller2D>();

        //leftBounds = GameObject.FindGameObjectWithTag("LeftBounds").GetComponent<Transform>();
        //rightBounds = GameObject.FindGameObjectWithTag("RightBounds").GetComponent<Transform>();
    }
コード例 #2
0
ファイル: Jizz.cs プロジェクト: doyboy/NSFW_Jam_2019
    // Start is called before the first frame update
    void Start()
    {
        playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Doy>();

        print(playerScript);
    }