Commit 79ac8bbe by Naliwe GS

Basics

parent 50ff4538
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="5ae8e509-4645-4305-8aec-662b1997deba" name="Default" comment=""> <list default="true" id="5ae8e509-4645-4305-8aec-662b1997deba" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" /> <change type="DELETED" beforePath="$PROJECT_DIR$/../Assets/Scripts/GameManager.cs" afterPath="" />
<change type="DELETED" beforePath="$PROJECT_DIR$/../Assets/Scripts/GameManager.cs.meta" afterPath="" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/../ProjectSettings/EditorBuildSettings.asset" afterPath="$PROJECT_DIR$/../ProjectSettings/EditorBuildSettings.asset" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/../ProjectSettings/ProjectSettings.asset" afterPath="$PROJECT_DIR$/../ProjectSettings/ProjectSettings.asset" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list> </list>
<ignored path="igem-quantifly.iws" /> <ignored path="igem-quantifly.iws" />
<ignored path=".idea/workspace.xml" /> <ignored path=".idea/workspace.xml" />
...@@ -22,19 +26,50 @@ ...@@ -22,19 +26,50 @@
<favorites_list name="igem-quantifly" /> <favorites_list name="igem-quantifly" />
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="GameManager.cs" pinned="false" current-in-tab="true"> <file leaf-file-name="ObjectPool.cs" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameManager.cs"> <entry file="file://$PROJECT_DIR$/../Assets/Scripts/Utils/ObjectPool.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="612">
<caret line="36" column="28" selection-start-line="36" selection-start-column="28" selection-end-line="36" selection-end-column="28" />
<folding>
<marker date="1469998228121" expanded="true" signature="6:71" ph="..." />
<marker date="1469998228121" expanded="true" signature="103:973" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="133:971" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="309:354" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="383:654" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="699:965" ph="{...}" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="GameController.cs" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameController.cs">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255"> <state relative-caret-position="255">
<caret line="15" column="5" selection-start-line="15" selection-start-column="5" selection-end-line="15" selection-end-column="5" /> <caret line="15" column="28" selection-start-line="15" selection-start-column="28" selection-end-line="15" selection-end-column="28" />
<folding> <folding>
<marker date="1469990360342" expanded="true" signature="6:44" ph="..." /> <marker date="1469996328037" expanded="true" signature="6:46" ph="..." />
<marker date="1469990360342" expanded="true" signature="87:207" ph="{...}" /> <marker date="1469996328037" expanded="true" signature="72:560" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="136:143" ph="{...}" /> <marker date="1469996328037" expanded="true" signature="122:558" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="138:143" ph="{...}" /> <marker date="1469996328037" expanded="true" signature="323:509" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="197:205" ph="{...}" /> <marker date="1469996328037" expanded="true" signature="532:552" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="199:205" ph="{...}" /> </folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Player.cs" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/Player.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
<folding>
<marker date="1469999977079" expanded="true" signature="44:454" ph="{...}" />
<marker date="1469999977079" expanded="true" signature="86:452" ph="{...}" />
<marker date="1469999977079" expanded="true" signature="146:212" ph="{...}" />
<marker date="1469999977079" expanded="true" signature="235:446" ph="{...}" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -49,14 +84,36 @@ ...@@ -49,14 +84,36 @@
<option name="CHANGED_PATHS"> <option name="CHANGED_PATHS">
<list> <list>
<option value="$PROJECT_DIR$/../Assets/Scripts/GameManager.cs" /> <option value="$PROJECT_DIR$/../Assets/Scripts/GameManager.cs" />
<option value="$PROJECT_DIR$/../Assets/Scripts/Utils/ObjectPool.cs" />
<option value="$PROJECT_DIR$/../Assets/Scripts/GameController.cs" />
<option value="$PROJECT_DIR$/../Assets/Scripts/Player.cs" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds"> <component name="ProjectFrameBounds">
<option name="x" value="-1" /> <option name="x" value="-8" />
<option name="y" value="-33" /> <option name="y" value="-8" />
<option name="width" value="1922" /> <option name="width" value="1936" />
<option name="height" value="1114" /> <option name="height" value="1056" />
</component>
<component name="ProjectInspectionProfilesVisibleTreeState">
<entry key="Project Default">
<profile-state>
<expanded-state>
<State>
<id />
</State>
<State>
<id>General</id>
</State>
</expanded-state>
<selected-state>
<State>
<id>General</id>
</State>
</selected-state>
</profile-state>
</entry>
</component> </component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true"> <component name="ProjectLevelVcsManager" settingsEditedManually="true">
<OptionsSetting value="true" id="Add" /> <OptionsSetting value="true" id="Add" />
...@@ -120,6 +177,32 @@ ...@@ -120,6 +177,32 @@
<option name="myItemId" value="Assembly-CSharp" /> <option name="myItemId" value="Assembly-CSharp" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" /> <option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" />
</PATH_ELEMENT> </PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Assets" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Scripts" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Utils" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerViewPane$ProjectViewPaneTreeStructure$createRoot$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="igem-quantifly" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Assembly-CSharp" />
<option name="myItemType" value="com.jetbrains.resharper.projectView.solutionExplorer.SolutionExplorerNodeRider" />
</PATH_ELEMENT>
</PATH> </PATH>
</subPane> </subPane>
<option name="show-file-system" value="false" /> <option name="show-file-system" value="false" />
...@@ -128,6 +211,8 @@ ...@@ -128,6 +211,8 @@
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="last_opened_file_path" value="$PROJECT_DIR$/../igem-quantifly.sln" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/../igem-quantifly.sln" />
<property name="settings.editor.selected.configurable" value="preferences.sourceCode.C#" />
<property name="settings.editor.splitter.proportion" value="0.2" />
</component> </component>
<component name="RunManager" selected=".NET Project.Default"> <component name="RunManager" selected=".NET Project.Default">
<configuration default="true" type="DotNetProject" factoryName=".NET Project"> <configuration default="true" type="DotNetProject" factoryName=".NET Project">
...@@ -164,11 +249,14 @@ ...@@ -164,11 +249,14 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1469990300756</updated> <updated>1469990300756</updated>
<workItem from="1469990303599" duration="68000" /> <workItem from="1469990303599" duration="68000" />
<workItem from="1469991709912" duration="1654000" />
<workItem from="1469993497246" duration="1025000" />
<workItem from="1469994566860" duration="5595000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="68000" /> <option name="totallyTimeSpent" value="8342000" />
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -180,27 +268,27 @@ ...@@ -180,27 +268,27 @@
</todo-panel> </todo-panel>
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="-1" y="-33" width="1922" height="1114" extended-state="6" /> <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<editor active="false" /> <editor active="true" />
<layout> <layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.1515625" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Errors in solution" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Errors in solution" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Build" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Build" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32980973" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="UnitTesting" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="UnitTesting" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="NuGet" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="NuGet" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout> </layout>
...@@ -217,21 +305,112 @@ ...@@ -217,21 +305,112 @@
<option name="myLimit" value="2678400000" /> <option name="myLimit" value="2678400000" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager /> <breakpoint-manager>
<option name="time" value="1" />
</breakpoint-manager>
<watches-manager /> <watches-manager />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameManager.cs"> <entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameManager.cs">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="68">
<caret line="4" column="21" selection-start-line="4" selection-start-column="21" selection-end-line="4" selection-end-column="21" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/Utils/ObjectPool.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1469998228121" expanded="true" signature="6:71" ph="..." />
<marker date="1469998228121" expanded="true" signature="103:973" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="133:971" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="309:354" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="383:654" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="699:965" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameManager.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="18" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/Utils/ObjectPool.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1469998228121" expanded="true" signature="6:71" ph="..." />
<marker date="1469998228121" expanded="true" signature="103:973" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="133:971" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="309:354" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="383:654" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="699:965" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameManager.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameManager.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="22" column="8" selection-start-line="22" selection-start-column="8" selection-end-line="22" selection-end-column="8" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/Utils/ObjectPool.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="612">
<caret line="36" column="28" selection-start-line="36" selection-start-column="28" selection-end-line="36" selection-end-column="28" />
<folding>
<marker date="1469998228121" expanded="true" signature="6:71" ph="..." />
<marker date="1469998228121" expanded="true" signature="103:973" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="133:971" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="309:354" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="383:654" ph="{...}" />
<marker date="1469998228121" expanded="true" signature="699:965" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/GameController.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="15" column="28" selection-start-line="15" selection-start-column="28" selection-end-line="15" selection-end-column="28" />
<folding>
<marker date="1469996328037" expanded="true" signature="6:46" ph="..." />
<marker date="1469996328037" expanded="true" signature="72:560" ph="{...}" />
<marker date="1469996328037" expanded="true" signature="122:558" ph="{...}" />
<marker date="1469996328037" expanded="true" signature="323:509" ph="{...}" />
<marker date="1469996328037" expanded="true" signature="532:552" ph="{...}" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Assets/Scripts/Player.cs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255"> <state relative-caret-position="255">
<caret line="15" column="5" selection-start-line="15" selection-start-column="5" selection-end-line="15" selection-end-column="5" /> <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
<folding> <folding>
<marker date="1469990360342" expanded="true" signature="6:44" ph="..." /> <marker date="1469999977079" expanded="true" signature="44:454" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="87:207" ph="{...}" /> <marker date="1469999977079" expanded="true" signature="86:452" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="136:143" ph="{...}" /> <marker date="1469999977079" expanded="true" signature="146:212" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="138:143" ph="{...}" /> <marker date="1469999977079" expanded="true" signature="235:446" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="197:205" ph="{...}" />
<marker date="1469990360342" expanded="true" signature="199:205" ph="{...}" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
fileFormatVersion: 2
guid: 22e0d8b57f789ce49ba2a2adae9dadec
folderAsset: yes
timeCreated: 1469997140
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 02bdda2559eb6e0478bba7e6b8aa88fb
timeCreated: 1469997363
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2632aef584ea8314299444ce97d7f32c
timeCreated: 1469997168
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1a5b4426128661346a5fcfc7f0b388e7
folderAsset: yes
timeCreated: 1469996963
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: f3f15d4f7beb8af49adebe524bed6179
timeCreated: 1469997332
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 534578d7e4746704894da74561f7198e
timeCreated: 1469996969
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: a0438dee19db39d4f8e47a6a83709b0e
timeCreated: 1469997714
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
using Assets.Scripts.Utils;
using UnityEngine;
namespace Assets.Scripts
{
public class GameController : MonoBehaviour
{
public static int PoolSize = 256;
private ObjectPool _pooledWalls;
private ObjectPool _pooledActors;
private ObjectPool _pooledProjectiles;
void Start()
{
_pooledActors = new ObjectPool(PoolSize);
_pooledProjectiles = new ObjectPool(PoolSize);
_pooledWalls = new ObjectPool(PoolSize);
}
void Update()
{
}
}
}
\ No newline at end of file
using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour {
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
}
}
using UnityEngine;
namespace Assets.Scripts
{
public class Player : MonoBehaviour
{
private Transform _pos;
void Start()
{
_pos = GetComponent<Transform>();
}
void Update()
{
var newPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
newPos.z = 0;
_pos.position = Vector3.Lerp(_pos.position, newPos, 10 * Time.deltaTime);
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: ac12067f081e1bb4a9a576053cf23b44
timeCreated: 1469997725
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0c4600f713b2c5f48800d11accf9a99f
folderAsset: yes
timeCreated: 1469993544
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Assets.Scripts.Utils
{
public class ObjectPool
{
public GameObject PooledObject;
public List<GameObject> Pool;
public bool WillGrow;
public int Size;
public ObjectPool(int size)
{
Size = size;
}
public void Start()
{
Pool = new List<GameObject>();
for (var i = 0; i < Pool.Count; i++)
{
var obj = Object.Instantiate(PooledObject);
obj.SetActive(false);
Pool.Add(obj);
}
}
public GameObject GetPooledObject()
{
if (!WillGrow || !Pool.All(o => o.activeInHierarchy))
return Pool.FirstOrDefault(o => !o.activeInHierarchy);
var obj = Object.Instantiate(PooledObject);
Pool.Add(obj);
return obj;
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 573af60f153c3c5428fc5363ab81d909
timeCreated: 1469996348
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment