Example #1
0
        private void initFadeInObj(GameObject go, Vector3 position, Quaternion qua, float life)
        {
            go.transform.position = position;
            go.transform.rotation = qua;
            fadeout fadeout = go.AddComponent <fadeout>();

            fadeout.lifeTime = life;
        }
Example #2
0
        private void initFadeInObj(GameObject go, Vector3 position, Vector3 eulerAngles, float life)
        {
            go.transform.position         = position;
            go.transform.localEulerAngles = eulerAngles;
            fadeout fadeout = go.AddComponent <fadeout>();

            fadeout.lifeTime = life;
        }