Example #1
0
    public override void Init()
    {
        base.Init();
        lc = this;

        layerMask = 1 << 11 | 1 << 10 | 1 << 13 | 1 << 16;
        layerMask = ~layerMask;

        anim = GetComponent <Animator>();

        health         = MAX_HEALTH * 5.0f;
        jumpCount      = 3;
        jumpForce.y    = jumpForce.y * 50.0f;
        isOnSameLevel  = false;
        isJumping      = false;
        bombShootTimer = 0.0f;
        idleTimer      = 2.0f;
        downTimer      = 5.0f;
    }
Example #2
0
 void OnEnable()
 {
     pc = PlayerController.pc;
     lc = LeviathanController.lc;
 }