Example #1
0
    /// <summary>
    /// Initializes the values associated to this character instance. </summary>
    protected virtual void Awake()
    {
        Initialization();
        _coordinates = GetComponent <Transform>();
        _controller  = GetComponent <CharacterController>();
        _rigidbody   = GetComponent <Rigidbody>();

        charStats   = GetComponent <BaseCharacterClassicStats>();
        charMoveSet = GetComponent <CharacterMovesetModule>();

        //primaryWeapon = transform.GetComponentInChildren<>();
    }
//	[SerializeField] bool invincible;
//	[SerializeField] bool sneaking;
//	[SerializeField] bool stunned;
//	[SerializeField] bool running;
//	[SerializeField] bool defending;
//	[SerializeField] bool countering;
    #endregion

    #region Setup
    protected override void OnAwake()
    {
        base.OnAwake();
        stats      = GetComponent <BaseCharacterClassicStats> ();
        moveSet    = GetComponent <CharacterMovesetModule> ();                                                                          //used to access actions for state activation
        equipment  = GetComponent <BaseEquipmentLoadoutModule> ();
        _animation = GetComponent <MeshRenderer> ();


        armed     = false;
        attacking = false;
//		sneaking = false;
//
//		stunned = false;
//		running = false;
//		defending = false;
//		countering = false;
    }
Example #3
0
    /// <summary>
    /// Initializes the values associated to this character instance. </summary>
    protected virtual void Awake()
    {
        Initialization();
        _coordinates = GetComponent<Transform>();
        _controller = GetComponent<CharacterController>();
        _rigidbody = GetComponent<Rigidbody>();

        charStats = GetComponent<BaseCharacterClassicStats>();
        charMoveSet = GetComponent<CharacterMovesetModule>();

        //primaryWeapon = transform.GetComponentInChildren<>();
    }
    protected override void OnAwake()
    {
        base.OnAwake ();
        stats = GetComponent<BaseCharacterClassicStats> ();
        moveSet = GetComponent<CharacterMovesetModule> ();									//used to access actions for state activation
        equipment = GetComponent<BaseEquipmentLoadoutModule> ();
        _animation = GetComponent<MeshRenderer> ();

        armed = false;
        attacking = false;
        //		sneaking = false;
        //
        //		stunned = false;
        //		running = false;
        //		defending = false;
        //		countering = false;
    }