コード例 #1
0
 // Use this for initialization
 void Start()
 {
     score             = 0;
     multiplier        = 0;
     highestMultiplier = 0;
     game = FindObjectOfType <GameCoop>();
 }
コード例 #2
0
    // Update is called once per frame
    void Update()
    {
        game = FindObjectOfType <GameCoop>();

        GetInput();
        GetStart();
    }
コード例 #3
0
    // Update is called once per frame
    void Update()
    {
        game = FindObjectOfType <GameCoop>();

        if (Time.timeScale > 0)
        {
        }
    }
コード例 #4
0
    // Use this for initialization
    void Awake()
    {
        rb = GetComponent <Rigidbody2D>();

        bulletSpeed = 1500f;

        rb.AddRelativeForce(new Vector2(0, bulletSpeed));

        game = FindObjectOfType <GameCoop>();
    }
コード例 #5
0
    // Use this for initialization
    void Awake()
    {
        rb = GetComponent <Rigidbody2D>();

        bulletSpeed = 700f;

        rb.AddRelativeForce(new Vector2(0, bulletSpeed));

        animator = FindObjectOfType <Animator>();

        explode = false;

        game = FindObjectOfType <GameCoop>();
    }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     game = FindObjectOfType <GameCoop>();
 }