Beispiel #1
0
 void Awake()
 {
     pj  = GetComponent <PlayerJumpBehaviour>();
     rb  = GetComponent <Rigidbody2D>();
     ait = GetComponent <ActiveInTimeLayerBehaviour>();
     cb  = GetComponent <CameraBehaviour>();
 }
Beispiel #2
0
    void Awake()
    {
        spawnPos   = transform.position;
        playerData = new PlayerData(spawnPos, TimeLayer.First);

        activeLayer = GetComponent <ActiveInTimeLayerBehaviour>();
        rb          = GetComponent <Rigidbody2D>();
        sr          = GetComponent <SpriteRenderer>();
    }
 void Awake()
 {
     ait = GetComponent <ActiveInTimeLayerBehaviour>();
 }
 void Awake()
 {
     rb  = GetComponent <Rigidbody2D>();
     ait = GetComponent <ActiveInTimeLayerBehaviour>();
     playerAnimations = GetComponent <Animator>();
 }