Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gadig
four
Commits
cc391d22
Commit
cc391d22
authored
Nov 17, 2016
by
tmorga18
Browse files
Deleting unnecessary stuff
parent
936c9b9b
Changes
12
Show whitespace changes
Inline
Side-by-side
Assets/Prefabs/FireballProjectile.prefab
deleted
100644 → 0
View file @
936c9b9b
File deleted
Assets/Prefabs/FireballProjectile.prefab.meta
deleted
100644 → 0
View file @
936c9b9b
fileFormatVersion: 2
guid: b3b2f4d882443b4479197c16a3a047f9
timeCreated: 1477616236
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/script/HeroAttackController.cs
deleted
100644 → 0
View file @
936c9b9b
using
UnityEngine
;
using
System.Collections
;
public
class
HeroAttackController
:
MonoBehaviour
{
enum
ability
{
fireball
,
water
,
others
};
private
int
direction
;
public
float
speed
;
private
ability
currentAbility
=
ability
.
fireball
;
public
GameObject
FireballPrefab
;
private
Vector3
LastInput
=
new
Vector3
(
0
,
1
,
0
);
// Use this for initialization
void
Start
()
{
}
// Update is called once per frame
void
Update
(){
Vector3
input
=
new
Vector3
(
Input
.
GetAxisRaw
(
"Horizontal"
),
Input
.
GetAxisRaw
(
"Vertical"
),
0
);
if
(
input
.
x
==
0
&&
input
.
y
==
0
)
{
//do nothing
}
else
if
(
input
.
y
!=
0
)
{
LastInput
=
new
Vector3
(
0
,
input
.
y
,
0
);
}
else
{
LastInput
=
new
Vector3
(
input
.
x
,
0
,
0
);
}
if
(
Input
.
GetButtonDown
(
"Fire1"
)){
switch
(
currentAbility
)
{
case
ability
.
fireball
:
Vector3
pos
=
GetComponent
<
Transform
>
().
position
;
GameObject
clone
=
Instantiate
(
FireballPrefab
,
pos
,
Quaternion
.
identity
)
as
GameObject
;
clone
.
GetComponent
<
FireballMove
>().
move
=
LastInput
;
clone
.
GetComponent
<
FireballMove
>().
speed
=
speed
;
Debug
.
Log
(
"fireball"
);
break
;
default
:
Debug
.
Log
(
"default"
);
break
;
}
}
if
(
Input
.
GetButtonDown
(
"Fire2"
)){
Debug
.
Log
(
"melee"
);
}
}
public
Vector3
GetLastDirection4
(){
return
LastInput
;
}
}
Assets/script/HeroAttackController.cs.meta
deleted
100644 → 0
View file @
936c9b9b
fileFormatVersion: 2
guid: 9d62da0ef0f1b3d4a830a1a99cdb161d
timeCreated: 1477008563
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/sprite/ability - fireball.png
deleted
100644 → 0
View file @
936c9b9b
168 KB
Assets/sprite/ability - fireball.png.meta
deleted
100644 → 0
View file @
936c9b9b
fileFormatVersion: 2
guid: 8b53374e83d3a49fdbceef35191ed16e
timeCreated: 1475814864
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 200
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
Assets/sprite/ability - throw rock.png
deleted
100644 → 0
View file @
936c9b9b
228 KB
Assets/sprite/ability - throw rock.png.meta
deleted
100644 → 0
View file @
936c9b9b
fileFormatVersion: 2
guid: 97b4b5e4f4cdc4c3db9cffbd3433bea9
timeCreated: 1475814864
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 200
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
Assets/sprite/ability - water shield.png
deleted
100644 → 0
View file @
936c9b9b
243 KB
Assets/sprite/ability - water shield.png.meta
deleted
100644 → 0
View file @
936c9b9b
fileFormatVersion: 2
guid: 5f156b1ab9b124139ac8f2b953314c32
timeCreated: 1475814864
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 200
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
Assets/sprite/breath of air.png
deleted
100644 → 0
View file @
936c9b9b
103 KB
Assets/sprite/breath of air.png.meta
deleted
100644 → 0
View file @
936c9b9b
fileFormatVersion: 2
guid: ea17000c4566e405e8d574a06daecdfd
timeCreated: 1475815355
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 200
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment