Exemplo n.º 1
0
        void Awake()
        {
            LAYER = LayerMask.NameToLayer("Player");

            damageable                  = GetComponent <DamageableComp>();
            damageable.unitIsHit        = IsHit;
            damageable.shakeCameraOnHit = true;
            damageable.cameraCtrl       = Camera.main.GetComponent <CameraController>();

            flippable        = GetComponent <FlippableSpriteComp>();
            characterAnmtr   = GetComponent <Animator>();
            weaponController = GetComponent <PlayerWeaponController>();
            knockbackComp    = GetComponent <KnockbackComp>();
            movingComp       = GetComponent <MovingComp>();
        }
Exemplo n.º 2
0
 private void Awake()
 {
     movingComp = GetComponent <MovingComp>();
 }