3 Mayıs 2017 Çarşamba

ListView Kullanımı

Layout kısmına, bir ListView ekledikten Sonra yazacağımız kodlar;


private String[] ulkeler = {"Mustafa Kemal Atatürk","Büyük İskender","Adolf Hitler","Atilla","Fatih Sultan Mehmet","....."}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //(A) adımı ListView listemiz=(ListView) findViewById(R.id.listView1); //(B) adımı ArrayAdapter<String> veriAdaptoru=new ArrayAdapter<String> (this, android.R.layout.simple_list_item_1, android.R.id.text1, ulkeler); //(C) adımı listemiz.setAdapter(veriAdaptoru); } }

Ana kodumuzu Activity'nin onCreate() metoduna yazıyoruz. Böylelikle Activity oluşturulur oluşturulmaz verilerimizi ArrayAdapter yardımıyla ListView'da göstermiş oluyoruz. Activity'nin her onCreate() oluşunda çalışacak kodları şöyle açıklayabiliriz:
  • (A) adımında, önce liste öğemize (listemiz) bir referans değişkeni tayin ediyoruz ki artık o öğemizi bir değişken ile kullanabilelim. findViewById() ile XML'de android:id ile isim verdiğimiz öğelere erişiriz. 
  • (B) adımında, new deyimiyle bir ArrayAdapter oluşturuyoruz. Oradaki <String>, ArrayAdapter'ın içinde tutacağı verilerin türünü belirten bir deyim. ArrayAdapter'ın yapılandırıcı metodundaki parametrelerse şu anlama geliyor: 
    • thisContext. Yani bağlam. Bu this deyimiyle değer olarak Activity'nin kendisinin dönmesini sağlıyoruz (Activity sınıfının içindeyiz). ArrayAdapter, çalıştığı yerle ilgili bilgiyi Context'e ulaşarak bulur.
    • android.R.layout.simple_list_item_1resource. Bu parametre, kullanıcının göreceği listenin yerleşim dosyasıdır. Listemiz bu layout dosyasından bina edilecektir.
    • android.R.id.text1textViewResourceId Bu parametre, layout dosyasındaki TextView'ın adını (id) verdiğimiz yerdir. Her bir veri buradaki bir TextView'a basılır.
  • (C) adımında artık ayarlamalarını bitirdiğimiz ArrayAdapter'i listemize gösteriyoruz.

5 Nisan 2017 Çarşamba

Sahne Arası Geçişlerde Sesin Devam Etmesi İçin. Unity 2d

using UnityEngine;
using System.Collections;

public class MusicCalma : MonoBehaviour {

static MusicCalma ornek = null;
void Awake () {
if (ornek != null) {
Destroy (gameObject);
print ("2.ci ses yok edildi.");
} else {
ornek = this;
GameObject.DontDestroyOnLoad (gameObject);
print ("Obje getirildi");
}



}

// Update is called once per frame
void Update () {

}
}

29 Mart 2017 Çarşamba

Animasyonu Nasıl Bİr Süre Sonra Yok Ederim.

Bunun için animasyonunuzu oluşturduktan sonra, bir script oluşturunuz ve içine girip şu kodları yazınız;

public float delay = 0f; // kaç saniye sonra silinmesini istiyorsanız onu giriniz

// Use this for initialization
void Start () {
//Burda Yok Edici kullandık animasyonumuzu içine çagırıyoruz.
Destroy (gameObject, this.GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).length + delay);
}

Script dosyasını animasyon kullandıgınız Game Object içine atınız.



22 Mart 2017 Çarşamba

Mouse Pozisyon Ayarlamak Ve Prefab Obje Üretmek

Hieracy kısmından, bir GameObject oluşturunuz. Ardından bir Script Oluşturup şu kodları içine yazınız;


public GameObject[] toplar; int i = 0; 
 void Update () { 
 Vector3 mousePos=new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0f);


if (Input.GetMouseButtonDown (0)) {


mousePos.z = 2.0f; 
Vector3 wordPos;
wordPos=Camera.main.ScreenToWorldPoint(mousePos);
Instantiate(toplar[i++], wordPos,Quaternion.identity);
if (i == toplar.Length){
i=0;
}


}
ardından diziye prefab objeler atayınız.


Yok Edici Oluşturmak Destroy Unity3D

Bunun için ilk olarak Hieracy Kısmından bir GameObject Oluşturunuz ve ismini Destroy yada yok edici keyfinize kalmış bir şey koyunuz. ardından Onunla temas edecek. nesnenizin İs Trigger özelliğini açınız.
Ardından, Script oluşturunuz ve şu şekilde ;


void OnTriggerEnter2D(Collider2D other) {

Destroy(other.gameObject);

}

Oluşturduktan sonra bu script i yok edici diye oluşturdugunuz objenin içine atınız ardından.
yok edici objeye edgeCollider2D oluşturunuz. ardından Collideri istediğiniz gibi oluşturduktan sonra yapacağınız şey çalıştırıp denemeniz :)

Unity3D Sahneler Arası Geçiş

İlk olarak bir C# Script oluşturunuz,  ardından Hierarcy penceresinden yeni bir GameObject oluşturunuz ve script i içine atınız.
Bu şekilde ayarlayınız ve script i açıp içine ;


public void NextLevelButton(string levelName)
{
Application.LoadLevel(levelName);
}

Bu şekilde fonksiyonumuzu oluşturduktan sonra Bir Button oluşturunuz ve OnClick Kısmı ;


On Click Kısmı Bu şekilde olmalıdır. artık sahneler arası geçiş yapabilirsiniz.


10 Şubat 2017 Cuma

Privacy Policy

This privacy policy has been compiled to better serve those who are concerned with how their ‘Personally identifiable information’ (PII) is being used online. PII, as used in US privacy law and information security, is information that can be used on its own or with other information to identify, contact, or locate a single person, or to identify an individual in context. Please read our privacy policy carefully to get a clear understanding of how we collect, use, protect or otherwise handle your Personally Identifiable Information in accordance with our website and applications.
What personal information do we collect from the people that visit our blog, website or app?
We do not collect information from visitors of our site and applications.
When do we collect information?
We collect information from you when you or enter information on our site and applications.
How do we use your information?
We may use the information we collect from you when you register, make a purchase, sign up for our newsletter, respond to a survey or marketing communication, surf the website, use applications, or use certain other site features in the following ways:
How do we protect visitor information?
We do not use vulnerability scanning and/or scanning to PCI standards.
We do not use Malware Scanning.
We do not use an SSL certificate
• We only provide articles, information and mobile applications (Games etc.), we never ask for personal or private information like email addresses, or credit card numbers.
Do we use ‘cookies’?
We do not use cookies for tracking purposes
You can choose to have your computer warn you each time a cookie is being sent, or you can choose to turn off all cookies. You do this through your browser (like Internet Explorer) settings. Each browser is a little different, so look at your browser’s Help menu to learn the correct way to modify your cookies.
If you disable cookies off, some features will be disabled that make your site experience more efficient and some of our services will not function properly.
However, you can still place orders .
Third Party Disclosure
We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information unless we provide you with advance notice. This does not include website or application hosting partners and other parties who assist us in operating our website and applications, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others’ rights, property, or safety.However, non-personally identifiable visitor information may be provided to other parties for marketing, advertising, or other uses.
Third party links
We do not include or offer third party products or services on our website and applications.
Google
Google’s advertising requirements can be summed up by Google’s Advertising Principles. They are put in place to provide a positive experience for users. https://support.google.com/adwordspolicy/answer/1316548?hl=en
We use Google AdSense Advertising on our website and applications.
Google, as a third party vendor, uses cookies to serve ads on our site and applications. Google’s use of the DART cookie enables it to serve ads to our users based on their visit to our site and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.
We have implemented the following:
• Google Display Network Impression Reporting
We along with third-party vendors, such as Google use first-party cookies (such as the Google Analytics cookies) and third-party cookies (such as the DoubleClick cookie) or other third-party identifiers together to compile data regarding user interactions with ad impressions, and other ad service functions as they relate to our website and applications.
Opting out:
Users can set preferences for how Google advertises to you using the Google Ad Settings page. Alternatively, you can opt out by visiting the Network Advertising initiative opt out page or permanently using the Google Analytics Opt Out Browser add on.
California Online Privacy Protection Act
CalOPPA is the first state law in the nation to require commercial websites and online services to post a privacy policy. The law’s reach stretches well beyond California to require a person or company in the United States (and conceivably the world) that operates websites collecting personally identifiable information from California consumers to post a conspicuous privacy policy on its website stating exactly the information being collected and those individuals with whom it is being shared, and to comply with this policy. – See more at: http://consumercal.org/california-online-privacy-protection-act-caloppa/#sthash.0FdRbT51.dpuf
According to CalOPPA we agree to the following:
Users can visit our site and applications anonymously
Once this privacy policy is created, we will add a link to it on our home page, or as a minimum on the first significant page after entering our website and applications.
Our Privacy Policy link includes the word ‘Privacy’, and can be easily be found on the page specified above.
Users will be notified of any privacy policy changes:
• On our Privacy Policy Page
Users are able to change their personal information:
• By logging in to their account
How does our site and applications handle do not track signals?
We honor do not track signals and do not track, plant cookies, or use advertising when a Do Not Track (DNT) browser mechanism is in place.
Does our site and applications allow third party behavioral tracking?
It’s also important to note that we do not allow third party behavioral tracking
COPPA (Children Online Privacy Protection Act)
When it comes to the collection of personal information from children under 13, the Children’s Online Privacy Protection Act (COPPA) puts parents in control. The Federal Trade Commission, the nation’s consumer protection agency, enforces the COPPA Rule, which spells out what operators of websites and online services must do to protect children’s privacy and safety online.
We do not specifically market to children under 13.
Fair Information Practices
The Fair Information Practices Principles form the backbone of privacy law in the United States and the concepts they include have played a significant role in the development of data protection laws around the globe. Understanding the Fair Information Practice Principles and how they should be implemented is critical to comply with the various privacy laws that protect personal information.
In order to be in line with Fair Information Practices we will take the following responsive action, should a data breach occur:
We will notify the users via in site notification
• Within 7 business days
We also agree to the individual redress principle, which requires that individuals have a right to pursue legally enforceable rights against data collectors and processors who fail to adhere to the law. This principle requires not only that individuals have enforceable rights against data users, but also that individuals have recourse to courts or a government agency to investigate and/or prosecute non-compliance by data processors.
CAN SPAM Act
The CAN-SPAM Act is a law that sets the rules for commercial email, establishes requirements for commercial messages, gives recipients the right to have emails stopped from being sent to them, and spells out tough penalties for violations.
We collect your email address in order to:
To be in accordance with CANSPAM we agree to the following:
If at any time you would like to unsubscribe from receiving future emails, you can email us at
and we will promptly remove you from ALL correspondence.
Contacting Us
If there are any questions regarding this privacy policy you may contact us using the information below.
Non-Stop Software
Gemerek Sivas Turkey
İst sokak no 10
Turkey
g500mt@gmail.com
Last Edited on 2017-02-10