Exemple #1
0
    GameObject MarkerOBJ;//インスタンスしたマーカーの格納先

    // Use this for initialization
    void Start()
    {
        targetobj        = GameObject.FindWithTag("Player");
        mynavi_trigger   = gameObject.transform.FindChild("Navi_trigger").gameObject;
        mynavi_triggerSC = mynavi_trigger.transform.GetComponent <triggerSC>();

        MarkerOBJ = Instantiate(Marker, transform.position, new Quaternion(90, 0, 0, 0)) as GameObject;
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     maincamera       = GameObject.FindWithTag("MainCamera");
     targetobj        = GameObject.FindWithTag("Player");
     mynavi_trigger   = gameObject.transform.FindChild("Navi_trigger").gameObject;
     mynavi_triggerSC = mynavi_trigger.transform.GetComponent <triggerSC>();
     playerOBJ        = GameObject.Find("Player");
     Mykakoi          = Instantiate(kakoi, transform.position, transform.rotation) as GameObject;
     MarkerOBJ        = Instantiate(Marker, transform.position, new Quaternion(90, 0, 0, 0)) as GameObject;
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     targetobj        = GameObject.FindWithTag("Player");
     mynavi_trigger   = gameObject.transform.FindChild("Navi_trigger").gameObject;
     mynavi_triggerSC = mynavi_trigger.transform.GetComponent <triggerSC>();
 }