anonymous No title
No License C#
2020年10月23日
Copy Clone
public class PlayerController : MonoBehaviour
{
    public Rigidbody2D rb;

    // Start is called before the first frame update
    void Start()
    {
        rb = this.GetComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
        //左矢印が押された時
        if (Input.GetKeyDown(KeyCode.LeftArrow))
        {
            rb.velocity = new Vector3(-3f, 0, 0);
        }
        else if(Input.GetKeyUp(KeyCode.LeftArrow))
        {
            rb.velocity = new Vector3(0, 0, 0);
        }

        if (Input.GetKeyDown(KeyCode.RightArrow))
        {
            rb.velocity = new Vector3(3f, 0, 0);
        }
        else if (Input.GetKeyUp(KeyCode.RightArrow))
        {
            rb.velocity = new Vector3(0, 0, 0);
        }
    }
}
public class PlayerController : MonoBehaviour
{
    public Rigidbody2D rb;

    // Start is called before the first frame update
    void Start()
    {
        rb = this.GetComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
        //左矢印が押された時
        if (Input.GetKeyDown(KeyCode.LeftArrow))
        {
            rb.velocity = new Vector3(-3f, 0, 0);
        }
        else if(Input.GetKeyUp(KeyCode.LeftArrow))
        {
            rb.velocity = new Vector3(0, 0, 0);
        }

        if (Input.GetKeyDown(KeyCode.RightArrow))
        {
            rb.velocity = new Vector3(3f, 0, 0);
        }
        else if (Input.GetKeyUp(KeyCode.RightArrow))
        {
            rb.velocity = new Vector3(0, 0, 0);
        }
    }
}
anonymous
Anonymous
2021年04月26日
Drug information leaflet. Cautions. <a href="https://lyricainfo.top">order pregabalin without insurance</a> in the USA Some information about medicament. Get information here.
anonymous
Anonymous
2021年04月26日
Drugs information leaflet. Long-Term Effects. <a href="https://topregabalin.top">can i buy generic lyrica online</a> in Canada Actual news about medicine. Get information now.
anonymous
Anonymous
2021年04月30日
is there a generic cialis <a href="https://mycialistabs.com/">levitra vs cialis</a> us pharmacy prices for cialis
anonymous
Anonymous
2021年04月30日
cialis india <a href="https://mycialistabs.com/">over the counter cialis</a> cialis otc 2017
anonymous
Anonymous
2021年05月01日
cialis 20mg price <a href="https://toptadalafiltabs.com/">tadalafil 5mg</a> cialis side effects a wife's perspective
anonymous
Anonymous
2021年05月03日
what to write your college essay on <a href="https://topessaywriterfas.com/">pro essay writing service</a> pay for someone to write my essay
anonymous
Anonymous
2021年05月03日
buy cialis <a href="https://toptadalafiltabs.com/">cialis without a doctor prescription usa</a> what happens if you take 2 cialis
anonymous
Anonymous
2021年05月05日
essay format service <a href="http://writemyessayslfd.com/">writing a essay</a> ielts essay unpaid community service
anonymous
Anonymous
2021年05月05日
write essay for me online <a href="https://topessaywriterfas.com/">essay write help</a> how to write a compelling essay
anonymous
Anonymous
2021年05月06日
women taking viagra <a href="https://mrviagrashop.com">viagra pill for men</a> viagra memes
anonymous
Anonymous
2021年05月07日
essay on role of youth in social service <a href="http://writemyessayslfd.com/">write a persuasive essay</a> essay writings service
anonymous
Anonymous
2021年05月07日
instant natural viagra <a href="https://mysildenafilkr.com/">sildenafil 100 mg tablet</a> where to buy sildenafil
anonymous
Anonymous
2021年05月07日
buy generic 100mg viagra online <a href="https://mrviagrashop.com">viagra for men</a> cvs viagra
anonymous
Anonymous
2021年05月11日
what is cialis <a href="http://tadalafilled.com/">site</a> cialis drug interactions
anonymous
Anonymous
2021年05月08日
buy sildenafil citrate <a href="https://mysildenafilkr.com/">sildenafil moa</a> 200 milligram viagra
anonymous
Anonymous
2021年05月11日
resume for administrative assistant <a href="http://coverletterforresumetop.com/">top resume discount</a> recent graduate resume
anonymous
Anonymous
2021年05月12日
words to use in a resume <a href="http://coverletterforresumetop.com/">executive resume</a> please find attached my resume
anonymous
Anonymous
2021年05月12日
short cover letter <a href="https://writingacoverletteronline.com/">certified resume writer</a> myperfect resume
anonymous
Anonymous
2021年05月12日
can you buy cialis over the counter <a href="http://tadalafilled.com/">what doe cialis look like</a> cialis vs.levitra
anonymous
Anonymous
2021年05月13日
cover letter structure <a href="https://writingacoverletteronline.com/">https://writingacoverletteronline.com/</a> resume for internship
anonymous
Anonymous
2021年05月13日
buy viagra <a href="https://edviagramaster.net/">sildenafil 100mg price walmart</a> viagra canadian pharmacy ezzz
anonymous
Anonymous
2021年05月14日
sildenafil no prescription <a href="https://edviagramaster.net/">best over the counter viagra</a> buying viagra online legally
anonymous
Anonymous
2021年05月15日
buy cialis online <a href="https://cialisortadalafil.com/">here</a> cialis instructions
anonymous
Anonymous
2021年05月16日
herbal viagra <a href="https://sildenafilviagratop.com">viagra online</a> sildenafil 100 mg tablet
anonymous
Anonymous
2021年05月16日
cialis commercial <a href="https://cialisortadalafil.com/">tadalafil 5mg price</a> cialis 20 mg price walgreens
anonymous
Anonymous
2021年05月16日
how long does 5mg cialis last <a href="https://topcialistabs.com/">liquid tadalafil</a> best online pharmacy for cialis
anonymous
Anonymous
2021年05月17日
cialis 20mg side effects <a href="https://topcialistabs.com/">how to use cialis</a> viagra vs cialis reddit
anonymous
Anonymous
2021年05月17日
Medicament information leaflet. Short-Term Effects. <a href="https://prednisolone4u.top">prednisolone tablets</a> in USA Some information about meds. Get now.
anonymous
Anonymous
2021年05月21日
<a href="https://5bz.ru/">база данных предприятий казахстана</a>
anonymous
Anonymous
2021年06月01日
Medicament information leaflet. Generic Name. <a href="https://trazodone2020.top">trazodone without dr prescription</a> in the USA Some information about medicament. Get now.
anonymous
Anonymous
2021年07月19日
<a href="https://krasota4u.ru">trazodone no prescription</a>
anonymous
Anonymous
2021年07月25日
Medicine information leaflet. What side effects? <a href="https://plaquenil4people.top">where to get plaquenil</a> in US All trends of drug. Read information now.