public void FillToSceneComponent(RoleComponent roleComponent) { int max = roleExecuableInfos.Length; for (int i = 0; i < max; i++) { var item = roleExecuableInfos[i]; if (item.isExecuteInScene) { roleComponent.ActiveRoleInputPhase(item.phaseName, true); } else { IRoleInput roleInput = roleComponent.RoleEntitas.RoleInput; roleInput.ActiveEntitasPhase(item.phaseName, true); } } }
public void ShowRoleInfoInGUI(RoleComponent selectedRole) { if (sceneSelectedRole != default && sceneSelectedRole != selectedRole) { sceneSelectedRole.CancelShowEnemyPos(); } sceneSelectedRole = selectedRole; if (mEnemyLabelStyle == default) { mEnemyLabelStyle = new GUIStyle("enemyPosLabel") { fontSize = 20 }; } ICommonRole roleEntitas = selectedRole.RoleEntitas; string content = string.Empty; ShowRoleLockDownEnemyInGUI(ref roleEntitas, ref content); ShowRolePhaseInGUI(ref roleEntitas, ref content); }
private void OnDestroy() { mCollidingRoles = default; m_RoleSceneComp = default; mRoleEnitas = default; }