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
services: | |
mysql-test-db: | |
image: mysql:8.0 | |
container_name: mysql-test-db | |
environment: | |
MYSQL_DATABASE: 'demo' | |
MYSQL_USER: 'user' | |
MYSQL_PASSWORD: 'password' | |
MYSQL_ROOT_PASSWORD: 'password' | |
MYSQL_ROOT_HOST: '%' |
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
'use strict'; | |
import {Model} from "sequelize"; | |
module.exports = (sequelize, DataTypes) => { | |
class Product extends Model { | |
/** | |
* Helper method for defining associations. | |
* This method is not a part of Sequelize lifecycle. | |
* The `models/index` file will call this method automatically. | |
*/ |
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
// Height | |
float orthoSize = gameField.bounds.size.y / 2; | |
// Width | |
float orthoSize = gameField.bounds.size.x * Screen.height / Screen.width * 0.5f; | |
Camera.main.orthographicSize = orthoSize; | |
//See All |
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
const FadeInView = (props) => { | |
const [fadeAnim] = useState(new Animated.Value(0)) // Initial value for opacity: 0 | |
React.useEffect(() => { | |
Animated.timing( | |
fadeAnim, | |
{ | |
toValue: 1, | |
duration: 10000, | |
} |
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
AudioSource.PlayClipAtPoint(AudioClip, Camera.main.transform.position); |
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
int numGameOfSessions = FindObjectsOfType<GameSession>().Length; | |
if(numGameOfSessions > 1) { | |
Destroy(gameObject); | |
}else { | |
DontDestroyOnLoad(gameObject); | |
} |