Created
April 22, 2015 03:49
-
-
Save aki017/8df66b2bb7437896c2ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class ng : MonoBehaviour | |
{ | |
public GameObject prefab; | |
private GameObject go; | |
private bool Flag = false; | |
void Start () | |
{ | |
} | |
void Update () | |
{ | |
if ((false == Flag)) { | |
go = (GameObject)Instantiate(prefab); | |
go.transform.parent = transform; | |
// 実際にはその場面に応じて変わる | |
var animeNo = 0; | |
go.GetComponentInChildren<Script_SpriteStudio_PartsRoot>().AnimationPlay(animeNo); | |
Flag = true; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class ok : MonoBehaviour | |
{ | |
public GameObject prefab; | |
private GameObject go; | |
private bool Flag = false; | |
void Start () | |
{ | |
go = (GameObject)Instantiate(prefab); | |
go.transform.parent = transform; | |
} | |
void Update () | |
{ | |
if ((false == Flag)) { | |
// 実際にはその場面に応じて変わる | |
var animeNo = 0; | |
go.GetComponentInChildren<Script_SpriteStudio_PartsRoot>().AnimationPlay(animeNo); | |
Flag = true; | |
} | |
} | |
} |
Author
aki017
commented
Apr 22, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment