示例#1
0
    // Use this for initialization
    void Start()
    {
        player   = GameObject.Find("player");
        shodow   = GameObject.Find("shodow");
        _fShodow = shodow.GetComponent <fShodow>();

        StartCoroutine("Delay");
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     tim                  = Camera.main.GetComponent <timeover>();
     player               = GameObject.Find("player");
     shodow               = GameObject.Find("shodow");
     _hMainDirector       = GameObject.Find("MainDirector").GetComponent <hMainDirector>();
     fadeImage            = GetComponent <Image>();
     fadeImage.fillAmount = 1.0f;
     _fshodow             = shodow.GetComponent <fShodow>();
     _yPlayerAI           = player.GetComponent <yPlayerAI>();
 }
    // Use this for initialization
    void Start()
    {
        //スクリプトを取得
        _fShodow           = GameObject.Find("shodow").GetComponent <fShodow>();
        _yPlayerAI         = transform.parent.GetComponent <yPlayerAI>();
        _yPlayerAI.enabled = false;
        _fShodow.enabled   = false;


        //遅延コルーチン
        StartCoroutine("Delay");
    }
示例#4
0
 // Use this for initialization
 void Start()
 {
     fs = GameObject.Find("shodow").GetComponent <fShodow>();
     sllidre.maxValue = fs.HP;
 }