private void Start() { m_characterMove = GetComponent <characterMove>(); m_moveCamera = GetComponentInChildren <moveCamera>(); m_interactor = GetComponentInChildren <interactor>(); m_InputData = new InputData(); }
void Awake() { cM = GetComponent <characterMove>(); pI = GetComponent <PlayerInput>(); cH = GetComponent <characterHealth>(); weaponManager = GetComponent <PlayerWeaponManager>(); }
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; }
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; }
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); }
// Use this for initialization public virtual void Start() { if (AttackSettings.enemyAttack) { AttackSettings.enemyAttack.eAI = this; } cM = GetComponent <characterMove>(); cH = GetComponent <characterHealth>(); choiceInterval = ChoiceMakingInterval; }
void Start() { cM = GetComponent <characterMove>(); pC = GetComponent <PlayerController>(); Pause = Camera.main.GetComponent <PauseScreen>(); SetInput(currentInput); timeOfAttack = Time.time - 2; }
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; }
// Start is called before the first frame update void Start() { move = this.transform.GetComponent <characterMove>(); anim = this.transform.GetComponent <Animation>(); }
// Start is called before the first frame update void Start() { chMove = this.GetComponent <characterMove>(); }
// Start is called before the first frame update void Start() { targetPoint = this.transform.position; charactermove = this.GetComponent <characterMove>(); }