コード例 #1
0
ファイル: Player.cs プロジェクト: polyphonic13/game01
 void Awake()
 {
     camera = Camera.main;
     _lastPosition = camera.transform.position;
     inventory = new InventoryManager();
     inventory.init(basicStyle);
     notification = new Notification();
     notification.init(basicStyle);
     menu = new Menu();
     menu.init(basicStyle);
     menu.showMenu = true;
     EventCenter eventCenter = EventCenter.Instance;
     eventCenter.onEnablePlayer += this.onEnablePlayer;
     eventCenter.onMouseSensitivityChange += this.onMouseSensitivityChange;
     headController = GetComponent<PlayerMeshController> ();
 }