コード例 #1
0
ファイル: Form2.cs プロジェクト: PavelShershnoyv/gameProject
 public void Init()
 {
     center        = new CenterButton(ClientSize.Width / 2 - 25, ClientSize.Height / 2 - 25, true);
     ball          = new TargetBall(10, 10, 20, false);
     score         = new Score();
     timer         = new Timer();
     targetCount   = -1;
     stoppingPoint = true;
 }
コード例 #2
0
ファイル: TargetBall.cs プロジェクト: jetwangwork/ball2p
 // Use this for initialization
 void Start()
 {
     instance          = this;
     rbTargetBall      = GetComponent <Rigidbody2D>();
     rbTargetBall.drag = 10000;
 }
コード例 #3
0
 public override void InitializeAgent()
 {
     target_detector = target.GetComponent <TargetBall>();
     dist_to_target  = Vector3.Distance(target.transform.position, endpoint.transform.position);
 }