void Start() { combatSys = GameObject.Find("ScriptManager").GetComponent <CombatSys>(); goodGuy = GameObject.Find("Player"); thisObject = gameObject; battle = GameObject.Find("ScriptManager").GetComponent <BattleStatePattern>(); }
void Start() { combatSys = GameObject.Find("ScriptManager").GetComponent<CombatSys>(); goodGuy = GameObject.Find("Player"); thisObject = gameObject; battle = GameObject.Find("ScriptManager").GetComponent<BattleStatePattern>(); }
/// <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(); }
// Use this for initialization void Start() { ScriptManager = GameObject.Find("ScriptManager"); combat = ScriptManager.GetComponent<CombatSys>(); _targets = new List<Transform>(); selectedTarget = null; AddAllTargets(); }
// Use this for initialization void Start() { ScriptManager = GameObject.Find("ScriptManager"); combat = ScriptManager.GetComponent <CombatSys>(); _targets = new List <Transform>(); selectedTarget = null; AddAllTargets(); }
// 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(); }
// 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; }
// 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; }
// 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(); }
/// <summary> /// 初始化战斗系统 /// </summary> public void InitCombatSys() { instance = this; }