Inheritance: MonoBehaviour
コード例 #1
0
ファイル: Bonus.cs プロジェクト: Nervous/Xspace
 public Bonus(Texture2D texture, float vitesseVaisseau, Vector2 startPosition, string effect, int amount, int time, int score)
 {
     _textureBonus = texture;
     _vitesseBonus = vitesseVaisseau;
     _emplacement = startPosition;
     _deplacement = Vector2.Normalize(new Vector2(5, 0));
     _disabled = false;
     _score = score;
     bonus = new getBonus(effect, amount, time);
 }
コード例 #2
0
ファイル: Bonus.cs プロジェクト: seirll/Xspace
 public Bonus(Texture2D texture, float vitesseVaisseau, Vector2 startPosition, string effect, int amount, int time, int score)
 {
     _textureBonus = texture;
     _vitesseBonus = vitesseVaisseau;
     _emplacement  = startPosition;
     _deplacement  = Vector2.Normalize(new Vector2(5, 0));
     _disabled     = false;
     _score        = score;
     bonus         = new getBonus(effect, amount, time);
 }