Exemple #1
0
    void Start()
    {
        // MarinSnowのエフェクトはスピード依存。頻繁に更新するので参照を持っておく.
        GameObject effect = GameObject.Find("Effect_MarineSnow");

        if (effect)
        {
            marinesnowEffect = effect.GetComponent <MarineSnow>();
        }
        // 魚雷発射スクリプト.
        torpedo = GetComponent <TorpedoGenerator>();
    }
Exemple #2
0
    void Start()
    {
        // MarinSnow的效果依赖于速度。因为会频繁更新因此存储其引用
        GameObject effect = GameObject.Find("Effect_MarineSnow");

        if (effect)
        {
            marinesnowEffect = effect.GetComponent <MarineSnow>();
        }
        // 发射鱼类的脚本
        torpedo = GetComponent <TorpedoGenerator>();
    }
 void Start()
 {
     // MarinSnowのエフェクトはスピード依存。頻繁に更新するので参照を持っておく
     GameObject effect = GameObject.Find("Effect_MarineSnow");
     if (effect)  marinesnowEffect = effect.GetComponent<MarineSnow>();
     // 魚雷発射スクリプト
     torpedo = GetComponent<TorpedoGenerator>();
 }