Skip to content

Commit

Permalink
fixed total performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuta Kariyado committed Jun 24, 2021
1 parent a528dfe commit 23388c8
Show file tree
Hide file tree
Showing 12 changed files with 273 additions and 175 deletions.
59 changes: 59 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[*]
cpp_indent_braces=false
cpp_indent_multi_line_relative_to=innermost_parenthesis
cpp_indent_within_parentheses=indent
cpp_indent_preserve_within_parentheses=false
cpp_indent_case_labels=false
cpp_indent_case_contents=true
cpp_indent_case_contents_when_block=false
cpp_indent_lambda_braces_when_parameter=true
cpp_indent_goto_labels=one_left
cpp_indent_preprocessor=leftmost_column
cpp_indent_access_specifiers=false
cpp_indent_namespace_contents=true
cpp_indent_preserve_comments=false
cpp_new_line_before_open_brace_namespace=ignore
cpp_new_line_before_open_brace_type=ignore
cpp_new_line_before_open_brace_function=ignore
cpp_new_line_before_open_brace_block=ignore
cpp_new_line_before_open_brace_lambda=ignore
cpp_new_line_scope_braces_on_separate_lines=false
cpp_new_line_close_brace_same_line_empty_type=false
cpp_new_line_close_brace_same_line_empty_function=false
cpp_new_line_before_catch=true
cpp_new_line_before_else=true
cpp_new_line_before_while_in_do_while=false
cpp_space_before_function_open_parenthesis=remove
cpp_space_within_parameter_list_parentheses=false
cpp_space_between_empty_parameter_list_parentheses=false
cpp_space_after_keywords_in_control_flow_statements=true
cpp_space_within_control_flow_statement_parentheses=false
cpp_space_before_lambda_open_parenthesis=false
cpp_space_within_cast_parentheses=false
cpp_space_after_cast_close_parenthesis=false
cpp_space_within_expression_parentheses=false
cpp_space_before_block_open_brace=true
cpp_space_between_empty_braces=false
cpp_space_before_initializer_list_open_brace=false
cpp_space_within_initializer_list_braces=true
cpp_space_preserve_in_initializer_list=true
cpp_space_before_open_square_bracket=false
cpp_space_within_square_brackets=false
cpp_space_before_empty_square_brackets=false
cpp_space_between_empty_square_brackets=false
cpp_space_group_square_brackets=true
cpp_space_within_lambda_brackets=false
cpp_space_between_empty_lambda_brackets=false
cpp_space_before_comma=false
cpp_space_after_comma=true
cpp_space_remove_around_member_operators=true
cpp_space_before_inheritance_colon=true
cpp_space_before_constructor_colon=true
cpp_space_remove_before_semicolon=true
cpp_space_after_semicolon=false
cpp_space_remove_around_unary_operator=true
cpp_space_around_binary_operator=insert
cpp_space_around_assignment_operator=insert
cpp_space_pointer_reference_alignment=left
cpp_space_around_ternary_operator=insert
cpp_wrap_preserve_blocks=one_liners
54 changes: 54 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Unity Editor",
"type": "unity",
"path": "/Users/yadosan/Dropbox/My Mac (Yutas-MacBook-Pro.local)/Documents/Unity/LG/Library/EditorInstance.json",
"request": "launch"
},
{
"name": "Windows Player",
"type": "unity",
"request": "launch"
},
{
"name": "OSX Player",
"type": "unity",
"request": "launch"
},
{
"name": "Linux Player",
"type": "unity",
"request": "launch"
},
{
"name": "iOS Player",
"type": "unity",
"request": "launch"
},
{
"name": "Android Player",
"type": "unity",
"request": "launch"
},
{
"name": "Xbox One Player",
"type": "unity",
"request": "launch"
},
{
"name": "PS4 Player",
"type": "unity",
"request": "launch"
},
{
"name": "SwitchPlayer",
"type": "unity",
"request": "launch"
}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.exclude": {
"**/*.meta": true
}
}
Binary file modified Assets/.DS_Store
Binary file not shown.
20 changes: 10 additions & 10 deletions Assets/DotManage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

public class DotManage : MonoBehaviour
{

public int x, y, z;
public int state = 0; //num of own
public int neighbor = 0; //num of around

public bool isAlive = false;

public void dotGenerate()

public int x, y, z;
public int state = 0; //num of own
public int neighbor = 0; //num of around

public bool isAlive = false;

public void dotGenerate()
{
transform.GetChild(0).gameObject.SetActive(true);
transform.GetChild(0).gameObject.SetActive(true);
isAlive = true;
}

public void dotDestroy()
public void dotDestroy()
{
transform.GetChild(0).gameObject.SetActive(false);
isAlive = false;
Expand Down
28 changes: 8 additions & 20 deletions Assets/DotManageSparse.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DotManageSparse : PoolObj<DotManageSparse>
{
//public int x, y, z;
//public int state = 0; //num of own
//public int neighbor = 0; //num of around

//public bool isAlive;

//// Update is called once per frame
//void Update()
//{
// DotManageSparse.Pool(this);
//}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DotManageSparse : PoolObj<DotManageSparse>
{
public override void Init()
{
gameObject.SetActive(true);
Expand All @@ -24,6 +12,6 @@ public override void Init()
public override void Sleep()
{
gameObject.SetActive(false);
}

}
}

}
Loading

0 comments on commit 23388c8

Please sign in to comment.