Beispiel #1
0
    public override void InitSkill()
    {
        //Debug.LogError("");
        //player = GameManager.Instance.PlayerActor;
        casterCharacterTeam = (eTeamType)OWNER.GetComponent <BaseObject>().GetData(ConstValue.ActorData_Team);
        casterActor         = OWNER.GetComponent <BaseObject>().GetData(ConstValue.ActorData_GetThisActor) as Actor;

        switch (casterActor.TEMPLATE_KEY)
        {
        case "CHARACTER_1":
        {
            EndTime = 0.5f;
        }
        break;

        case "ENEMY_1":
        {
            EndTime      = 0.5f;
            bNormalEnemy = true;
        }
        break;

        case "ENEMY_3":
        {
            EndTime     = 0.05f;
            bGiantEnemy = true;
        }
        break;
        }
    }
    public override void InitSkill()
    {
        casterCharacterTeam = (eTeamType)OWNER.GetComponent <BaseObject>().GetData(ConstValue.ActorData_Team);
        casterActor         = (Actor)OWNER.GetComponent <BaseObject>().GetData(ConstValue.ActorData_GetThisActor);
        casterAIScript      = casterActor.GetComponentInChildren <GiantEnemy>();

        TEMP_OFF = false;
    }