Пример #1
0
 void Start()
 {
     combatSys  = GameObject.Find("ScriptManager").GetComponent <CombatSys>();
     goodGuy    = GameObject.Find("Player");
     thisObject = gameObject;
     battle     = GameObject.Find("ScriptManager").GetComponent <BattleStatePattern>();
 }
Пример #2
0
 void Start()
 {
     combatSys = GameObject.Find("ScriptManager").GetComponent<CombatSys>();
     goodGuy = GameObject.Find("Player");
     thisObject = gameObject;
     battle = GameObject.Find("ScriptManager").GetComponent<BattleStatePattern>();
 }
Пример #3
0
    /// <summary>
    /// 初始化所有模块
    /// </summary>
    void Init()
    {
        //初始化服务模块
        mResSvc = GetComponent <ResSvc>();
        mResSvc.InitSvc();

        mNetSvc = GetComponent <NetSvc>();
        mNetSvc.InitSvc();

        mAudioSvc = GetComponent <AudioSvc>();
        mAudioSvc.InitAudio();

        //初始化业务系统
        mLogonSys = GetComponent <LogonSys>();
        mLogonSys.InitSys();

        mMainGameSys = GetComponent <MainGameSys>();
        mMainGameSys.InitMainGameSys();

        mCombatSys = GetComponent <CombatSys>();
        mCombatSys.InitCombatSys();
        //初始化控制器模块
        mControllerMag = new ControllerManage();
        mControllerMag.InitController();


        //进入登录系统
        mLogonSys.EnterLogin();
    }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     ScriptManager = GameObject.Find("ScriptManager");
     combat = ScriptManager.GetComponent<CombatSys>();
     _targets = new List<Transform>();
     selectedTarget = null;
     AddAllTargets();
 }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     ScriptManager  = GameObject.Find("ScriptManager");
     combat         = ScriptManager.GetComponent <CombatSys>();
     _targets       = new List <Transform>();
     selectedTarget = null;
     AddAllTargets();
 }
Пример #6
0
 // Use this for initialization
 void Start()
 {
     _targets       = new List <Transform>();
     selectedTarget = null;
     player         = GameObject.Find("Player");
     script         = GameObject.Find("ScriptManager");
     battle         = script.GetComponent <BattleStatePattern>();
     combatSys      = script.GetComponent <CombatSys>();
     AddAllEnemies();
 }
Пример #7
0
    // Use this for initialization
    void Start()
    {
        thisObject = gameObject;
        maxHP = 10;
        speed = 50f;
        currentHP = maxHP;
        scriptManager = GameObject.Find("ScriptManager");
        combatScript = scriptManager.GetComponent<CombatSys>();

        playerAnimator = thisObject.GetComponent<Animator>();
        playerAnimator.enabled = false;
    }
Пример #8
0
    // Use this for initialization
    void Start()
    {
        thisObject    = gameObject;
        maxHP         = 10;
        speed         = 50f;
        currentHP     = maxHP;
        scriptManager = GameObject.Find("ScriptManager");
        combatScript  = scriptManager.GetComponent <CombatSys>();

        playerAnimator         = thisObject.GetComponent <Animator>();
        playerAnimator.enabled = false;
    }
Пример #9
0
 // Use this for initialization
 void Start()
 {
     _targets = new List<Transform>();
     selectedTarget = null;
     player = GameObject.Find("Player");
     script = GameObject.Find("ScriptManager");
     battle = script.GetComponent<BattleStatePattern>();
     combatSys = script.GetComponent<CombatSys>();
     AddAllEnemies();
 }
Пример #10
0
 /// <summary>
 /// 初始化战斗系统
 /// </summary>
 public void InitCombatSys()
 {
     instance = this;
 }