コード例 #1
0
 void Awake()
 {
     //スクリプト取得
     HPDir    = this.GetComponent <HPDirectorScript>();
     ASScript = Opponent.GetComponent <ArtsStateScript>();
     CEvent   = this.GetComponent <ColliderEvent>();
     SEScript = this.GetComponent <SetEffectScript>();
 }
コード例 #2
0
ファイル: TestChar.cs プロジェクト: TakumiWatabe/ActArts
 //攻撃時の性能を取得
 private void CreateArtsSatet(ArtsStateScript arts, int type)
 {
     hitColSta.damage    = arts.Damage(type);
     hitColSta.attri     = arts.Attri(type);
     hitColSta.startCorr = arts.StartCorr(type);
     hitColSta.comboCorr = arts.CombCorr(type);
     hitColSta.atkLev    = arts.AtkLev(type);
     hitColSta.blockStun = arts.BlockStun(type);
     hitColSta.hitStun   = arts.HitStun(type);
 }
コード例 #3
0
ファイル: TestChar.cs プロジェクト: TakumiWatabe/ActArts
    // Use this for initialization
    void Start()
    {
        //ディレクタースクリプト取得
        ASScriptEne = Pcont.fightEnemy.GetComponent <ArtsStateScript>();
        CEvent      = this.GetComponent <ColliderEvent>();
        CEventEne   = Pcont.fightEnemy.GetComponent <ColliderEvent>();
        HPDir       = this.GetComponent <HPDirectorScript>();
        DEGScript   = this.GetComponent <DebugGetEnemyScript>();
        SEScript    = this.GetComponent <SetEffectScript>();
        GScript     = this.GetComponent <GuardScript>();

        //コライダーのスクリプトを取得
        for (int i = 0; i < CEvent.HClid.Count; i++)
        {
            col.Add(CEvent.HClid[i]);
            react.Add(col[i].GetComponent <ColliderReact>());
        }

        AI = gameObject.GetComponent <EnemyAI>();
    }
コード例 #4
0
ファイル: TestChar.cs プロジェクト: TakumiWatabe/ActArts
 void Awake()
 {
     Pcont    = this.GetComponent <PlayerController>();
     ASScript = this.GetComponent <ArtsStateScript>();
 }