У вашего броузера проблема в совместимости с HTML5
NOTE: Annotations for YouTube has been removed, so I have to put the note here:
The startPosition was removed from the video by a mistake. You can create it like this.
Create a field:
private Vector2 startPos;
Do this in start
startPos = transform.Position;
Do this if you want to respawn:
transform.Position = startPos;
This series will teach you how to create the base for a 2D platformer in Unity 5.
The scripting language used in the tutorial i C#. The tutorial is for beginners and is easy to follow and understand.
This part of the series will show you how to implement an enemy with AI (artificial intelligence). The enemy is based on a State Machine that uses the design pattern called state pattern. This will teach you how to use interfaces, abstract classes, abstract functions and inheritance.
Follow the link below to: Skip the release dates, get the project files and try out the game in your browser:
http://inscopestudios.com/platformer
Follow the link below to support me:
http://patreon.com/inscopestudios
Download the idle sleep files here:
http://www.inscopestudios.com/Files/SleepIdle.zip
Follow me on my social media pages, to get updates and chat with me.
Like my page on facebook
http://facebook.com/inScopeStudios
Follow me on Twitter @inScopeStudios:
https://twitter.com/inScopeStudios
The sprites used in this tutorial can be found on:
http://www.gameart2d.com/freebies.html