This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestScript : MonoBehaviour | |
{ | |
public float speed = 0.3f; | |
void Start() | |
{ | |
} | |
void Update() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestScript : MonoBehaviour | |
{ | |
public Vector3 target; | |
public float smoothTime = 1f; | |
public float yVelocity = 0.0f; | |
void Start() | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Shake : MonoBehaviour { | |
public void ShakeObject() | |
{ | |
// このスクリプトはカメラに付けています。 | |
iTween.ShakePosition(gameObject, iTween.Hash("x", 0.3f, "y", 0.3f, "time", 0.5f)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour { | |
void Start () | |
{ | |
PunchPosition (); | |
} | |
void PunchPosition() | |
{ | |
iTween.PunchPosition (gameObject, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour { | |
void Start () | |
{ | |
PunchRotation (); | |
} | |
void PunchRotation() | |
{ | |
iTween.PunchRotation (gameObject, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour { | |
void Start () | |
{ | |
PunchScale(); | |
} | |
void PunchScale() | |
{ | |
iTween.PunchScale (gameObject, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour | |
{ | |
void Start() | |
{ | |
ShakeRotation(); | |
} | |
void ShakeRotation() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour | |
{ | |
void Start() | |
{ | |
ShakeScale(); | |
} | |
void ShakeScale() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour | |
{ | |
// UI Image | |
public Image image; | |
// 最初の色と最後の色を選択 | |
public Color startColor; | |
public Color endColor; | |
void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class iTweenMethod : MonoBehaviour | |
{ | |
void Start() | |
{ | |
// パターン1 | |
iTween.MoveTo(gameObject, iTween.Hash("x", 2f, "delay", 1f)); | |
} | |
} |
OlderNewer