private void Start() { _mainCamera = Camera.main; m_tempCol = m_fluid.GetComponent <Collider>(); m_tempRend = m_fluid.GetComponent <Renderer>(); _gasMode = FindObjectOfType <GasGiantFluidController>().gasMode; }
private void Start() { m_tempCol = m_fluid.GetComponent<Collider>(); m_tempRend = m_fluid.GetComponent<Renderer>(); m_prevPosition = transform.position; m_direction = GetDirection(); }
private void Start() { // causes one time error upon instantiation that work themselves out m_tempCol = m_fluid.GetComponent <Collider>(); m_tempRend = m_fluid.GetComponent <Renderer>(); m_prevPosition = transform.position; m_direction = GetDirection(); }
private void Start() { if (useRigidbody) { rig = GetComponent <Rigidbody2D>(); } m_tempCol = m_fluid.GetComponent <Collider>(); if (m_fluid && !m_fluid.m_cacheVelocity) { Debug.LogWarning("\"Cache Velocity\" must be set to true on the FluidSumulator component to use the Fluid Follower."); } }
private void Start() { m_tempCol = m_fluid.GetComponent <Collider>(); m_collider = GetComponent <PolygonCollider2D>(); }
private void Start() { m_tempCol = m_FluidSimulator.GetComponent <Collider>(); m_tempRend = m_FluidSimulator.GetComponent <Renderer>(); }
private void Start() { m_tempCol = m_fluid.GetComponent <Collider>(); m_tempRend = m_fluid.GetComponent <Renderer>(); }
private void Start() { // causes one time error upon instantiation that work themselves out m_tempCol = m_mainSimulation.GetComponent <Collider>(); m_tempRend = m_mainSimulation.GetComponent <Renderer>(); }
private void Start() { m_tempCol = m_mainSimulation.GetComponent <Collider>(); m_tempRend = m_mainSimulation.GetComponent <Renderer>(); }