コード例 #1
0
 // Use this for initialization
 void Start()
 {
     animator = GetComponent <Animator> ();
     player   = GetComponent <MadsPlayerController> ();
     colInfo  = GetComponent <RaycastCollisionChecks> ();
     rb       = GetComponent <Rigidbody2D> ();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     rb          = GetComponent <Rigidbody2D> ();
     colInfo     = GetComponent <RaycastCollisionChecks> ();
     flashColor  = GetComponent <FlashColor> ();
     deathShaker = GetComponent <DeathShake> ();
     SetupMoveAndJumpSpeed();
 }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        rigidbody2d            = GetComponent <Rigidbody2D> ();
        playerInput            = GetComponent <PlayerInput> ();
        raycastCollisionChecks = GetComponent <RaycastCollisionChecks> ();
        levelBar  = FindObjectOfType <LevelUpBar> ();
        audioclip = GetComponent <AudioSource> ();

        SetupMoveAndJumpSpeed();
    }
コード例 #4
0
 void Start()
 {
     controller = GetComponentInParent <VolgarrController>();
     colInfo    = GetComponentInParent <RaycastCollisionChecks>();
 }
コード例 #5
0
    public float direction            = 1.0f;                                   // 1.0f is right, -1.0 is left

    void Start()
    {
        rb      = GetComponent <Rigidbody2D>();
        colInfo = GetComponent <RaycastCollisionChecks>();
        SetupMoveAndJumpSpeed();
    }