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; }
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; }