/** * @return Game */ public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
public static function init() { if (is_null(self::$game)) { self::$game = new self(); } return self::$game; }