예제 #1
0
        void Start()
        {
            if (m_Transform == null)
            {
                m_Transform = transform;
            }

            m_InitialPos = m_Transform.position;
            m_TargetPos  = m_InitialPos;

            m_Sampler = TextureSampler.GetInstance();
            //  m_TextureRes = m_XAxisTex.width;

            m_RB = GetComponent <Rigidbody>();

            m_PosOffset.x = Random.Range(0f, 100f);
            m_PosOffset.y = Random.Range(0f, 100f);
            m_PosOffset.z = Random.Range(0f, 100f);
        }
예제 #2
0
 void Awake()
 {
     instance = this;
 }