-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameObject.cs
45 lines (43 loc) · 1.06 KB
/
GameObject.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace My2D_Engine
{
class GameObject
{
public bool hasTake;
public bool isDefaultCollide;
public bool isActive;
public bool isRigid;
public _Point location;
public RigidBody rigidBody;
public Motion motion;
public Collider collider;
public SpriteCG spCG;
public int SetRigid()
{
isRigid = true;
return 0;
}
public void DisableRigid()
{
isRigid = false;
}
public int SetRigid(RigidBody rb)
{
rigidBody = rb;
isRigid = true;
return 0;
}
public void Take(GameObject gameObject) { }
public void Active() { }
public void Vanish() { }
public void Update() { }
public bool IsCollideWith(GameObject gameObject)
{
return this.collider.isCollideWith(gameObject.collider);
}
}
}