View difference between Paste ID: R1ymmCcP and cnSUVVac
SHOW: | | - or go back to the newest paste.
1
using UnityEngine;
2
using System.Collections;
3
4-
public class JumpScript : Monobehaviour {
4+
public interface IBark
5
{
6-
	//============================================
6+
	void Bark();
7-
	// VARIABLES
7+
}
8-
	//============================================
8+
9
public class Example : Monobehaviour, IBark {
10-
	public int force = 10;
10+
11
	// Implementation of IBark
12-
	//============================================
12+
	void Bark()
13-
	// FUNCTIONS (UNITY)
13+
14-
	//============================================
14+
		GetComponent<BarkScript>().Bark();
15
	}
16-
	void Start()
16+
17
}