SamplyGame.SmallPlate.OnFire C# (CSharp) Method

OnFire() protected method

protected OnFire ( bool byPlayer ) : System.Threading.Tasks.Task
byPlayer bool
return System.Threading.Tasks.Task
		protected async override Task OnFire(bool byPlayer)
		{
			var cache = Application.ResourceCache;

			var bulletNode = CreateRigidBullet(byPlayer, Vector3.One / 3);
			bulletNode.Rotation = new Quaternion(310, 0, 0);
			bulletNode.SetScale(1f);

			var model = bulletNode.CreateComponent<StaticModel>();
			model.Model = cache.GetModel(Assets.Models.SmallPlate);
			model.SetMaterial(cache.GetMaterial(Assets.Materials.SmallPlate));
			Launch(bulletNode);
		}