void Start()
 {
     if (!gameCrear)
     {
         this.rb = GetComponent <Rigidbody2D>();
         events  = FindObjectOfType <GameEvents_Rooftop>();
         run     = -1f;
     }
 }
 void Start()
 {
     SetNextSentence();
     if (!gameCrear)
     {
         events = FindObjectOfType <GameEvents_Rooftop>();
         events.MoveAnimation(a);
     }
     if (gameCrear)
     {
         crear = FindObjectOfType <GameCrear_Rooftop>();
         crear.MoveAnimation(a);
     }
 }
    void Start()
    {
        col = GetComponent <Collider2D>();

        if (mouse ||
            UFO ||
            fly)
        {
            this.rb = GetComponent <Rigidbody2D>();
        }

        if (door)
        {
            events        = FindObjectOfType <GameEvents_Rooftop>();
            rule          = FindObjectOfType <GameRule>();
            this.animator = GetComponent <Animator>();
            state         = "USUALLY";
        }
    }
    string prevState;          // 前の状態を保存

    void Start()
    {
        this.animator = GetComponent <Animator>();
        events        = FindObjectOfType <GameEvents_Rooftop>();

        if (gamePlay)
        {
            this.rb = GetComponent <Rigidbody2D>();
            state   = "WALK";
        }
        if (!gamePlay && !currentStart)
        {
            this.rb = GetComponent <Rigidbody2D>();
            state   = "CLIMB";
        }
        if (currentStart)
        {
            state = "STAND";
            rule  = FindObjectOfType <GameRule>();
        }
    }