This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| project_path=$(pwd)/src/NAME_OF_PROJECT | |
| log_file=$(pwd)/build/unity-mac.log | |
| error_code=0 | |
| echo "Building project for Mac OS." | |
| /Applications/Unity/Unity.app/Contents/MacOS/Unity \ | |
| -batchmode \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| project_path=$(pwd)/src/NAME_OF_PROJECT | |
| log_file=$(pwd)/build/unity-mac.log | |
| export_path=$(pwd)/current-package/NAME_OF_PROJECT.unitypackage | |
| error_code=0 | |
| echo "Creating package." | |
| /Applications/Unity/Unity.app/Contents/MacOS/Unity \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: objective-c | |
| osx_image: xcode8.2 | |
| rvm: | |
| - 2.2 | |
| before_install: | |
| - chmod a+x ./scripts/*.sh | |
| install: | |
| - ./scripts/install-unity.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| version=$1 | |
| project="YOUR_LIBRARY_NAME" | |
| package_path=$(pwd)/current-package/$project.unitypackage | |
| release_directory=$(pwd)/release | |
| release_path=$release_directory/$project.$version.unitypackage | |
| mkdir -p $release_directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class PausableRigidBody2D : MonoBehaviour { | |
| private Rigidbody2D body; | |
| private Vector3 savedVelocity; | |
| private float savedAngularVelocity; | |
| void Awake() { | |
| body = GetComponent<Rigidbody2D>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM openjdk:8-jdk | |
| MAINTAINER Name <email@email.com> | |
| ENV VERSION_SDK_TOOLS "3859397" | |
| ENV ANDROID_HOME "/sdk" | |
| ENV PATH "$PATH:${ANDROID_HOME}/tools" | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get -qq update && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PowerPrefs.ForBool().Get("aBoolean"); | |
| PowerPrefs.ForInt().Get("anInteger", -1); | |
| PowerPrefs.ForLong().Set("aLong", 123456); | |
| PowerPrefs.ForString().Set("aString", "Hello"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PowerPrefsAccessor<int> intAccessor = PowerPrefs.ForInt(); | |
| int myValue = intAccessor.Get("myKey"); | |
| intAccessor.Set("meyKey", 5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PowerPrefsKeyAccessor<string> someKeyAccessor = PowerPrefs.ForString().KeyAccessor("someKey"); | |
| string myValue = someKeyAccessor.Get(); | |
| someKeyAccessor.Set("newValue"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Generate list of arguments to pass to Sourcery | |
| function sourceryArguments { | |
| # Environment variables from BuildConfig to map into AppSecrets | |
| local arguments=( | |
| "CHAT_API_CLIENT_SECRET" "ANALYTICS_WRITE_KEY" | |
| ) | |
| local combinedArgs |