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();
 }
示例#3
0
        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.");
     }
 }
示例#5
0
 private void Start()
 {
     m_tempCol  = m_fluid.GetComponent <Collider>();
     m_collider = GetComponent <PolygonCollider2D>();
 }
示例#6
0
 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>();
 }
示例#8
0
 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>();
 }
示例#9
0
 private void Start()
 {
     m_tempCol  = m_mainSimulation.GetComponent <Collider>();
     m_tempRend = m_mainSimulation.GetComponent <Renderer>();
 }