Пример #1
0
 // Use this for initialization
 void Start()
 {
     parent = GetComponentInParent <rabbit>();
 }
Пример #2
0
        private void Btn_button_Click(object sender, RoutedEventArgs e)
        {
            player a = new rabbit();

            a.attack();
        }