This file contains 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
public class Teleport : MonoBehaviour { | |
private Vector3 startingPosition; | |
void Start() { | |
startingPosition = transform.localPosition; | |
SetGazedAt(false); | |
} | |
} |
This file contains 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
public void SetGazedAt(bool gazedAt) { | |
GetComponent<Renderer>().material.color = gazedAt ? Color.green : Color.red; | |
} |
This file contains 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
void Update(){ | |
GetComponent<Rigidbody> ().velocity = transform.forward * 2.0f; | |
} |
This file contains 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
void LateUpdate(){ | |
if (GvrViewer.Instance.BackButtonPressed) { | |
Application.Quit (); | |
} | |
if (GvrViewer.Instance.Triggered) { | |
SomeAction (); | |
} | |
} |
This file contains 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
[{ | |
"relation": ["delegate_permission/common.handle_all_urls"], | |
"target": { | |
"namespace": "android_app", | |
"package_name": "com.example.app", | |
"sha256_cert_fingerprints": | |
["00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00"] | |
} | |
}] |
This file contains 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
apply plugin: 'com.android.application' | |
... | |
dependencies { | |
implementation project(':product') | |
implementation project(':productlist') | |
implementation project(':base') | |
} |
This file contains 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
apply plugin: 'com.android.feature' | |
... | |
dependencies { | |
implementation project(':base') | |
... | |
} |
This file contains 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
apply plugin: 'com.android.instantapp' | |
dependencies { | |
implementation project(':product') | |
implementation project(':productlist') | |
implementation project(':base') | |
} |
This file contains 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
<meta-data | |
android:name="default-url" | |
android:value="https://example.domain" /> |
This file contains 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
apply plugin: 'com.android.feature' | |
android { | |
baseFeature true | |
... | |
} | |
dependencies { | |
api 'com.android.support:appcompat-v7:26.0.1' | |
api 'com.android.support.constraint:constraint-layout:1.0.2' |
OlderNewer