// Start is called before the first frame update void Start() { m_rigidbody = m_controller.GetComponent <Rigidbody>(); m_previousPosition = transform.position; m_particleHolder = GameObject.Find("ParticlesHolder").transform; m_foamTimer = 0; }
public virtual void Init(TFJCharacterController _controller) { m_controller = _controller; m_transform = _controller.transform; m_characterController = _controller.GetComponent <CharacterController>(); }