Пример #1
0
    // Use this for initialization
    void Start()
    {
        PBB     = new PlayerBlackboard();
        Actions = new Actions();
        Player  = new Player();
        Move    = new move();

        PBB.Player                = GameObject.FindGameObjectWithTag("Player");
        PBB.Boss                  = GameObject.FindGameObjectWithTag("Boss");
        PBB.TwoHandWeap           = GameObject.FindGameObjectWithTag("TwoHand");
        PBB.maxValHealth          = 100f;
        PBB.maxValTwoHealth       = 100f;
        PBB.currentValHealth      = 100f;
        PBB.currentValTwoHealth   = 100f;
        PBB.maxValStamina         = 100f;
        PBB.currentValStamina     = 100f;
        PBB.Dimension             = 100f;
        PBB.setRollSpeed          = 7f;
        PBB.rollDistance          = 7f;
        PBB.terminalRotationSpeed = 25f;
        PBB.runSpeed              = 6f;
        PBB.walkSpeed             = 3f;
        PBB.fillAmountHealth      = 1f;
        PBB.fillAmountTwoHealth   = 1f;
        PBB.fillAmountStamina     = 1f;
        PBB.ifRecovering          = false;
        PBB.recoveringTimer       = 0;

        Move.InitStart(PBB);
        Player.Init();
        Actions.InitActions();
    }