Ejemplo n.º 1
0
 private void Start()
 {
     m_characterMove = GetComponent <characterMove>();
     m_moveCamera    = GetComponentInChildren <moveCamera>();
     m_interactor    = GetComponentInChildren <interactor>();
     m_InputData     = new InputData();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     cM            = GetComponent <characterMove>();
     pI            = GetComponent <PlayerInput>();
     cH            = GetComponent <characterHealth>();
     weaponManager = GetComponent <PlayerWeaponManager>();
 }
Ejemplo n.º 3
0
 public mouseLook(Rigidbody m_Rigidbody, Transform transform, characterMove m_characterMove)
 {
     Cursor.lockState     = CursorLockMode.Locked;
     this.m_Rigidbody     = m_Rigidbody;
     this.transform       = transform;
     this.m_characterMove = m_characterMove;
 }
Ejemplo n.º 4
0
    void Start()
    {
        flasher = GetComponent <Flasher>();
        shaker  = GetComponent <Shake>();
        cM      = GetComponent <characterMove>();

        if (effects.DeathEffect)
        {
            effects.DeathEffect.CreatePool();
        }
        if (effects.HitEffect)
        {
            effects.HitEffect.CreatePool();
        }
        if (effects.HealEffect)
        {
            effects.HealEffect.CreatePool();
        }

        RespawnPosition = transform.position;

        OriginalLayer  = gameObject.layer;
        CurrentHealth  = MaxHealth;
        timeOfLastHurt = Time.time;
    }
Ejemplo n.º 5
0
    void Start()
    {
        m_characterMove = GetComponentInParent <characterMove>();
        m_Rigidbody     = transform.parent.GetComponent <Rigidbody>();
        m_Camera        = GetComponent <Camera>();

        mouseLook = new mouseLook(m_Rigidbody, transform, m_characterMove);
        headBob   = new headBob(m_Camera, transform);
    }
Ejemplo n.º 6
0
 // Use this for initialization
 public virtual void Start()
 {
     if (AttackSettings.enemyAttack)
     {
         AttackSettings.enemyAttack.eAI = this;
     }
     cM             = GetComponent <characterMove>();
     cH             = GetComponent <characterHealth>();
     choiceInterval = ChoiceMakingInterval;
 }
Ejemplo n.º 7
0
    void Start()
    {
        cM = GetComponent <characterMove>();
        pC = GetComponent <PlayerController>();

        Pause = Camera.main.GetComponent <PauseScreen>();

        SetInput(currentInput);

        timeOfAttack = Time.time - 2;
    }
Ejemplo n.º 8
0
 public virtual void OnEnable()
 {
     if (!cM)
     {
         cM = GetComponent <characterMove>();
     }
     else if (cM.anim)
     {
         cM.anim.SetBool("Dead", false);
     }
     TimeOfRandomAngleChange = Time.time;
     TimeOfActionChoice      = Time.time;
     TimeOfAttack            = Time.time;
     TimeOfPlayerDetect      = Time.time;
     TimeOfHurt = Time.time;
 }
Ejemplo n.º 9
0
 // Start is called before the first frame update
 void Start()
 {
     move = this.transform.GetComponent <characterMove>();
     anim = this.transform.GetComponent <Animation>();
 }
Ejemplo n.º 10
0
 // Start is called before the first frame update
 void Start()
 {
     chMove = this.GetComponent <characterMove>();
 }
Ejemplo n.º 11
0
 // Start is called before the first frame update
 void Start()
 {
     targetPoint   = this.transform.position;
     charactermove = this.GetComponent <characterMove>();
 }